From 6567c568c450b31d3ee33c422d7d8e6b42bfdd4f Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 29 Apr 2021 23:22:01 +0100 Subject: [PATCH] . --- anatomy/templates/anatomy/question_detail.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html index 63bbc867..3f687782 100644 --- a/anatomy/templates/anatomy/question_detail.html +++ b/anatomy/templates/anatomy/question_detail.html @@ -84,6 +84,11 @@ }, type: "POST", dataType: "json", + statuCode: { + 403: function() { + toastr.warning('Error saving annotations (403 forbidden)') + } + } }) // $.ajax().done(), $.ajax().fail(), $ajax().always() are upto you. Add/change accordingly .done(function (data) {