Commit 340d902b by Afzal Wali Naushahi

Merge pull request #161 from edx/afzaledx/phx-155_cursor_wait_while_deleting_attempt155

Changed cursor to wait while waiting for attempt to be deleted.
parents 8d58fc84 b49ba456
...@@ -186,6 +186,7 @@ var edx = edx || {}; ...@@ -186,6 +186,7 @@ var edx = edx || {};
if (!confirm(gettext('Are you sure you want to remove this student\'s exam attempt?'))) { if (!confirm(gettext('Are you sure you want to remove this student\'s exam attempt?'))) {
return; return;
} }
$('body').css('cursor', 'wait');
var $target = $(event.currentTarget); var $target = $(event.currentTarget);
var attemptId = $target.data("attemptId"); var attemptId = $target.data("attemptId");
...@@ -199,6 +200,7 @@ var edx = edx || {}; ...@@ -199,6 +200,7 @@ var edx = edx || {};
success: function () { success: function () {
// fetch the attempts again. // fetch the attempts again.
self.hydrate(); self.hydrate();
$('body').css('cursor', 'auto');
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment