Add loading overlay for ajax requests
This commit is contained in:
@@ -1577,3 +1577,11 @@ $("#start-exam-button").click(function (evt) {
|
||||
window.cid = parseInt($("#candidate-number").val());
|
||||
$.modal.close();
|
||||
});
|
||||
|
||||
$(document).ajaxStart(function () {
|
||||
$("#loading").show();
|
||||
});
|
||||
|
||||
$(document).ajaxComplete(function () {
|
||||
$("#loading").hide();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user