From 223aae4c9c59ae54739cb2afdd7c32fd61de2365 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 7 Jan 2022 11:41:19 +0000 Subject: [PATCH] . --- templates/exam_overview_js.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 () {