Fixed links for units loaded via ajax.
LMS-2711
This commit is contained in:
@@ -114,15 +114,16 @@ var StaffDebug = (function(){
|
||||
|
||||
// Register click handlers
|
||||
$(document).ready(function() {
|
||||
$('.staff-debug-reset').click(function() {
|
||||
var $courseContent = $('.course-content');
|
||||
$courseContent.on("click", '.staff-debug-reset', function() {
|
||||
StaffDebug.reset($(this).parent().data('location-name'), $(this).parent().data('location'));
|
||||
return false;
|
||||
});
|
||||
$('.staff-debug-sdelete').click(function() {
|
||||
$courseContent.on("click", '.staff-debug-sdelete', function() {
|
||||
StaffDebug.sdelete($(this).parent().data('location-name'), $(this).parent().data('location'));
|
||||
return false;
|
||||
});
|
||||
$('.staff-debug-rescore').click(function() {
|
||||
$courseContent.on("click", '.staff-debug-rescore', function() {
|
||||
StaffDebug.rescore($(this).parent().data('location-name'), $(this).parent().data('location'));
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user