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