From 5adeeded9ee2473368f79690de86bb43f610202f Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 29 Apr 2021 23:25:36 +0100 Subject: [PATCH] . --- anatomy/templates/anatomy/question_detail.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html index 3f687782..a802b1e0 100644 --- a/anatomy/templates/anatomy/question_detail.html +++ b/anatomy/templates/anatomy/question_detail.html @@ -88,7 +88,11 @@ 403: function() { toastr.warning('Error saving annotations (403 forbidden)') } - } + }, + error: function() { + toastr.warning('Error saving annotations (403 forbidden)') + }, + }) // $.ajax().done(), $.ajax().fail(), $ajax().always() are upto you. Add/change accordingly .done(function (data) {