Skip to content
Snippets Groups Projects
Unverified Commit cf41d6eb authored by Ahtisham Shahid's avatar Ahtisham Shahid Committed by GitHub
Browse files

Merge pull request #23123 from edx/ahtisham/PROD-452

Fixed staff debug in instructor tab
parents 0e0b488f 62e1ad62
No related branches found
No related tags found
No related merge requests found
...@@ -160,25 +160,25 @@ var StaffDebug = (function() { ...@@ -160,25 +160,25 @@ var StaffDebug = (function() {
// Register click handlers // Register click handlers
$(document).ready(function() { $(document).ready(function() {
var $courseContent = $('.course-content'); var $mainContainer = $('#main');
$courseContent.on('click', '.staff-debug-reset', function() { $mainContainer.on('click', '.staff-debug-reset', function() {
StaffDebug.reset($(this).parent().data('location-name'), $(this).parent().data('location')); StaffDebug.reset($(this).parent().data('location-name'), $(this).parent().data('location'));
return false; 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')); StaffDebug.deleteStudentState($(this).parent().data('location-name'), $(this).parent().data('location'));
return false; 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')); StaffDebug.rescore($(this).parent().data('location-name'), $(this).parent().data('location'));
return false; 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')); StaffDebug.rescoreIfHigher($(this).parent().data('location-name'), $(this).parent().data('location'));
return false; 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')); StaffDebug.overrideScore($(this).parent().data('location-name'), $(this).parent().data('location'));
return false; return false;
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment