From ad793cd0af5048c0fc7f0287c2d3b0dc18f19bbf Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 6 Dec 2020 15:57:38 +0000 Subject: [PATCH] woops --- anatomy/templates/anatomy/exam_overview.html | 2 +- anatomy/templates/anatomy/question_detail.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/anatomy/templates/anatomy/exam_overview.html b/anatomy/templates/anatomy/exam_overview.html index 9ce9e36e..7870d1cc 100644 --- a/anatomy/templates/anatomy/exam_overview.html +++ b/anatomy/templates/anatomy/exam_overview.html @@ -47,7 +47,7 @@ .done(function (data) { console.log(data); - if (data.success) { + if (data.status == "success") { toastr.info('Exam state changed.') } // show some message according to the response. diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html index a48df965..3a1d8b75 100644 --- a/anatomy/templates/anatomy/question_detail.html +++ b/anatomy/templates/anatomy/question_detail.html @@ -44,10 +44,10 @@ console.log(data); // show some message according to the response. // For eg. A message box showing that the status has been changed - if (data.success) { + if (data.status == "success") { toastr.info('Annotations saved') } else { - toastr.warn('Error saving annotations') + toastr.warning('Error saving annotations') } }) .always(function () {