Fix my jshint failures
This commit is contained in:
parent
ff3e012034
commit
2d9942ceef
|
@ -45,7 +45,7 @@
|
|||
}).success(function(result) {
|
||||
if (result.error) {
|
||||
_this.set('loggingIn', false);
|
||||
if( result.reason == 'not_activated' ) {
|
||||
if( result.reason === 'not_activated' ) {
|
||||
return _this.showView(Discourse.NotActivatedView.create({username: _this.get('loginName'), sentTo: result.sent_to_email, currentEmail: result.current_email}));
|
||||
}
|
||||
_this.flash(result.error, 'error');
|
||||
|
|
|
@ -5,7 +5,7 @@ window.Discourse.NotActivatedView = window.Discourse.ModalBodyView.extend(Discou
|
|||
emailSent: false,
|
||||
|
||||
sendActivationEmail: function() {
|
||||
$.get('/users/' + this.get('username') + '/send_activation_email');
|
||||
jQuery.get('/users/' + this.get('username') + '/send_activation_email');
|
||||
this.set('emailSent', true);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue