From be5a1a33eb13edb3ee8534714f989e08556f18c8 Mon Sep 17 00:00:00 2001 From: aamir-khan Date: Thu, 21 May 2015 18:53:33 +0500 Subject: [PATCH] ECOM-1472: js nitpick fixes --- .../js/verify_student/views/webcam_photo_view.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lms/static/js/verify_student/views/webcam_photo_view.js b/lms/static/js/verify_student/views/webcam_photo_view.js index a865dd493c..e9fef0b165 100644 --- a/lms/static/js/verify_student/views/webcam_photo_view.js +++ b/lms/static/js/verify_student/views/webcam_photo_view.js @@ -245,18 +245,18 @@ ); $( this.el ).html( renderedHtml ); - var resetBtn = this.$el.find('#webcam_reset_button'); - var captureBtn = this.$el.find('#webcam_capture_button'); + var $resetBtn = this.$el.find('#webcam_reset_button'), + $captureBtn = this.$el.find('#webcam_capture_button'); // Install event handlers - resetBtn.on( 'click', _.bind( this.reset, this ) ); - captureBtn.on( 'click', _.bind( this.capture, this ) ); + $resetBtn.on( 'click', _.bind( this.reset, this ) ); + $captureBtn.on( 'click', _.bind( this.capture, this ) ); - resetBtn.on( 'keyup', _.bind( this.reset_by_enter, this ) ); - captureBtn.on( 'keyup', _.bind( this.capture_by_enter, this ) ); + $resetBtn.on( 'keyup', _.bind( this.reset_by_enter, this ) ); + $captureBtn.on( 'keyup', _.bind( this.capture_by_enter, this ) ); // Show the capture button - captureBtn.removeClass('is-hidden'); + $captureBtn.removeClass('is-hidden'); return this; },