From 26a2e60d04ad4add555e8076187f6b93ea62d070 Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Thu, 12 Apr 2018 13:36:56 -0700 Subject: [PATCH] fixes #3623 --- app/assets/javascripts/notes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 53cfd309a..0d8979625 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -446,6 +446,7 @@ Danbooru.Note = { width: $note_box.width() / ratio, height: $note_box.height() / ratio, body: $note_body.data("original-body"), + post_id: Danbooru.meta("post-id") } } @@ -458,10 +459,11 @@ Danbooru.Note = { }, error_handler: function(xhr, status, exception) { - Danbooru.error("Error: " + xhr.responseJSON.reasons.join("; ")); + Danbooru.error("Error: " + (xhr.responseJSON.reason || xhr.responseJSON.reasons.join("; "))); }, success_handler: function(data, status, xhr) { + window.console.log("succes"); if (data.html_id) { // new note var $note_body = Danbooru.Note.Body.find(data.html_id); var $note_box = Danbooru.Note.Box.find(data.html_id);