mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fix my jshint failures
This commit is contained in:
parent
ff3e012034
commit
2d9942ceef
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue