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) {