diff --git a/app/javascript/src/javascripts/notes.js b/app/javascript/src/javascripts/notes.js index 844039d3d..4b24f67eb 100644 --- a/app/javascript/src/javascripts/notes.js +++ b/app/javascript/src/javascripts/notes.js @@ -65,12 +65,6 @@ let Note = { Note.dragging = true; Note.clear_timeouts(); Note.Body.hide_all(); - if (Note.embed) { - var $bg = $note_box_inner.find("div.bg") - if ($bg.length) { - $bg.hide(); - } - } e.stopPropagation(); } ); @@ -87,14 +81,6 @@ let Note = { "dragstop.danbooru resizestop.danbooru", function(e) { Note.dragging = false; - if (Note.embed) { - var $note_box_inner = $(e.currentTarget); - var $bg = $note_box_inner.find("div.bg") - if ($bg.length) { - $bg.show(); - Note.Box.resize_inner_border($note_box_inner.closest(".note-box")); - } - } e.stopPropagation(); } ); @@ -157,14 +143,6 @@ let Note = { if ($inner_border.height() >= $note_box.height() - 2) { $note_box.height($inner_border.height() + 2); } - - if (Note.embed) { - var $bg = $inner_border.find("div.bg"); - if ($bg.length) { - $bg.height($inner_border.height()); - $bg.width($inner_border.width()); - } - } }, scale: function($note_box) { diff --git a/app/javascript/src/styles/specific/notes.scss b/app/javascript/src/styles/specific/notes.scss index f535d8f60..3b6e75be1 100644 --- a/app/javascript/src/styles/specific/notes.scss +++ b/app/javascript/src/styles/specific/notes.scss @@ -116,13 +116,6 @@ div#note-container { opacity: 0.4; } - div.bg { - height: 100%; - text-align: center; - display: table-cell; - vertical-align: middle; - } - div.ui-resizable-handle { display: none; }