From 62e1ad6216b134ebe1ca99ad0862f7c3ed109bc0 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Tue, 18 Feb 2020 11:52:33 +0500 Subject: [PATCH] Fixed binding issue updated selector updated var name --- lms/static/js/staff_debug_actions.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lms/static/js/staff_debug_actions.js b/lms/static/js/staff_debug_actions.js index fc808a6950..89a0567999 100644 --- a/lms/static/js/staff_debug_actions.js +++ b/lms/static/js/staff_debug_actions.js @@ -160,25 +160,25 @@ var StaffDebug = (function() { // Register click handlers $(document).ready(function() { - var $courseContent = $('.course-content'); - $courseContent.on('click', '.staff-debug-reset', function() { + var $mainContainer = $('#main'); + $mainContainer.on('click', '.staff-debug-reset', function() { StaffDebug.reset($(this).parent().data('location-name'), $(this).parent().data('location')); return false; }); - $courseContent.on('click', '.staff-debug-sdelete', function() { + $mainContainer.on('click', '.staff-debug-sdelete', function() { StaffDebug.deleteStudentState($(this).parent().data('location-name'), $(this).parent().data('location')); return false; }); - $courseContent.on('click', '.staff-debug-rescore', function() { + $mainContainer.on('click', '.staff-debug-rescore', function() { StaffDebug.rescore($(this).parent().data('location-name'), $(this).parent().data('location')); return false; }); - $courseContent.on('click', '.staff-debug-rescore-if-higher', function() { + $mainContainer.on('click', '.staff-debug-rescore-if-higher', function() { StaffDebug.rescoreIfHigher($(this).parent().data('location-name'), $(this).parent().data('location')); return false; }); - $courseContent.on('click', '.staff-debug-override-score', function() { + $mainContainer.on('click', '.staff-debug-override-score', function() { StaffDebug.overrideScore($(this).parent().data('location-name'), $(this).parent().data('location')); return false; });