Commit 16484420 by Waheed Ahmed

Reset attempts, delete state and rescore buttons not working on staff debug.

LMS-2706
parent 0888e327
...@@ -111,15 +111,15 @@ var StaffDebug = (function(){ ...@@ -111,15 +111,15 @@ var StaffDebug = (function(){
// Register click handlers // Register click handlers
$(document).ready(function() { $(document).ready(function() {
$('#staff-debug-reset').click(function() { $('.staff-debug-reset').click(function() {
StaffDebug.reset($(this).data('location')); StaffDebug.reset($(this).data('location'));
return false; return false;
}); });
$('#staff-debug-sdelete').click(function() { $('.staff-debug-sdelete').click(function() {
StaffDebug.sdelete($(this).data('location')); StaffDebug.sdelete($(this).data('location'));
return false; return false;
}); });
$('#staff-debug-rescore').click(function() { $('.staff-debug-rescore').click(function() {
StaffDebug.rescore($(this).data('location')); StaffDebug.rescore($(this).data('location'));
return false; return false;
}); });
......
...@@ -63,11 +63,11 @@ ${block_content} ...@@ -63,11 +63,11 @@ ${block_content}
</div> </div>
<div> <div>
[ [
<a href="#" id="staff-debug-reset" data-location="${location.name}">${_('Reset Student Attempts')}</a> <a href="#" id="staff-debug-reset" class="staff-debug-reset" data-location="${location.name}">${_('Reset Student Attempts')}</a>
| |
<a href="#" id="staff-debug-sdelete" data-location="${location.name}">${_('Delete Student State')}</a> <a href="#" id="staff-debug-sdelete" class="staff-debug-sdelete" data-location="${location.name}">${_('Delete Student State')}</a>
| |
<a href="#" id="staff-debug-rescore" data-location="${location.name}">${_('Rescore Student Submission')}</a> <a href="#" id="staff-debug-rescore" class="staff-debug-rescore" data-location="${location.name}">${_('Rescore Student Submission')}</a>
] ]
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment