This commit is contained in:
Ross
2020-12-06 15:57:38 +00:00
parent 9bcd326802
commit ad793cd0af
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -47,7 +47,7 @@
.done(function (data) { .done(function (data) {
console.log(data); console.log(data);
if (data.success) { if (data.status == "success") {
toastr.info('Exam state changed.') toastr.info('Exam state changed.')
} }
// show some message according to the response. // show some message according to the response.
@@ -44,10 +44,10 @@
console.log(data); console.log(data);
// show some message according to the response. // show some message according to the response.
// For eg. A message box showing that the status has been changed // For eg. A message box showing that the status has been changed
if (data.success) { if (data.status == "success") {
toastr.info('Annotations saved') toastr.info('Annotations saved')
} else { } else {
toastr.warn('Error saving annotations') toastr.warning('Error saving annotations')
} }
}) })
.always(function () { .always(function () {