From 2d9942ceef1be77d5e3abf13b1edeef4a47dc745 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 22 Feb 2013 12:17:07 -0500 Subject: [PATCH] Fix my jshint failures --- app/assets/javascripts/discourse/views/modal/login_view.js | 2 +- .../javascripts/discourse/views/modal/not_activated_view.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/views/modal/login_view.js b/app/assets/javascripts/discourse/views/modal/login_view.js index d55d8f90223..ea736ccc91e 100644 --- a/app/assets/javascripts/discourse/views/modal/login_view.js +++ b/app/assets/javascripts/discourse/views/modal/login_view.js @@ -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'); diff --git a/app/assets/javascripts/discourse/views/modal/not_activated_view.js b/app/assets/javascripts/discourse/views/modal/not_activated_view.js index ab2654e0f81..92a435d6b30 100644 --- a/app/assets/javascripts/discourse/views/modal/not_activated_view.js +++ b/app/assets/javascripts/discourse/views/modal/not_activated_view.js @@ -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); } });