All coursewares list now displays properly, coursewares properly direct to the follow on, courseware controller now properly finds the next courseware

This commit is contained in:
Nathan Leniz
2015-02-22 18:23:50 +09:00
parent b5a449cb1c
commit 3e65298e35
9 changed files with 81 additions and 43 deletions

View File

@@ -78,6 +78,14 @@ $(document).ready(function() {
editor.focus();
});
$('#showAllCoursewares').on('click', function() {
$('#all-coursewares-dialog').modal('show');
});
$('#all-coursewares-dialog').on('hidden.bs.modal', function() {
editor.focus();
});
$('#complete-courseware-dialog').on('hidden.bs.modal', function() {
editor.focus();
@@ -90,12 +98,12 @@ $(document).ready(function() {
coursewareInfo: {
coursewareHash: passedCoursewareHash
}
},
function(res) {
if (res) {
window.location.href = '/coursewares'
}
})
}).success(
function() {
window.location.href = '/coursewares';
}
)
}
});