diff --git a/templates/exam_overview_js.html b/templates/exam_overview_js.html index f2cad323..79c36d49 100644 --- a/templates/exam_overview_js.html +++ b/templates/exam_overview_js.html @@ -22,7 +22,7 @@ // show some message according to the response. // For eg. A message box showing that the status has been changed }) - .done(function (data) { + .fail(function (data) { toastr.error(`Failed to change state`); }) .always(function () { @@ -50,7 +50,7 @@ // show some message according to the response. // For eg. A message box showing that the status has been changed }) - .done(function (data) { + .fail(function (data) { toastr.error(`Failed to change state`); }) .always(function () {