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

Reset, delete and rescore not working on staff debug info
This commit is contained in:
brianhw
2014-05-15 10:00:09 -04:00
3 changed files with 7 additions and 7 deletions

View File

@@ -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;
});

View File

@@ -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

View File

@@ -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>