Commit 3b5e5741 by brianhw

Merge pull request #3732 from edx/waheed/lms2706-reset-delete-not-working-staff-debug

Reset, delete and rescore not working on staff debug info
parents 0888e327 6b84f8ab
......@@ -111,15 +111,15 @@ var StaffDebug = (function(){
// Register click handlers
$(document).ready(function() {
$('#staff-debug-reset').click(function() {
$('.staff-debug-reset').click(function() {
StaffDebug.reset($(this).data('location'));
return false;
});
$('#staff-debug-sdelete').click(function() {
$('.staff-debug-sdelete').click(function() {
StaffDebug.sdelete($(this).data('location'));
return false;
});
$('#staff-debug-rescore').click(function() {
$('.staff-debug-rescore').click(function() {
StaffDebug.rescore($(this).data('location'));
return false;
});
......
......@@ -10,7 +10,7 @@
</p>
<br>
<p>
<a href="${ section_data['spoc_gradebook_url'] }" class="progress-link"> ${_("View Gradebook")} </a>
<a href="${ section_data['spoc_gradebook_url'] }" class="gradebook-link"> ${_("View Gradebook")} </a>
</p>
<hr>
%endif
......
......@@ -63,11 +63,11 @@ ${block_content}
</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>
......
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