Fixed links for units loaded via ajax.

LMS-2711
This commit is contained in:
Waheed Ahmed
2014-06-02 14:16:50 +05:00
parent e6a9047f8a
commit cc36162df1
4 changed files with 63 additions and 10 deletions

View File

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