Remove dead embedded code
This commit is contained in:
@@ -65,12 +65,6 @@ let Note = {
|
|||||||
Note.dragging = true;
|
Note.dragging = true;
|
||||||
Note.clear_timeouts();
|
Note.clear_timeouts();
|
||||||
Note.Body.hide_all();
|
Note.Body.hide_all();
|
||||||
if (Note.embed) {
|
|
||||||
var $bg = $note_box_inner.find("div.bg")
|
|
||||||
if ($bg.length) {
|
|
||||||
$bg.hide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -87,14 +81,6 @@ let Note = {
|
|||||||
"dragstop.danbooru resizestop.danbooru",
|
"dragstop.danbooru resizestop.danbooru",
|
||||||
function(e) {
|
function(e) {
|
||||||
Note.dragging = false;
|
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();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -157,14 +143,6 @@ let Note = {
|
|||||||
if ($inner_border.height() >= $note_box.height() - 2) {
|
if ($inner_border.height() >= $note_box.height() - 2) {
|
||||||
$note_box.height($inner_border.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) {
|
scale: function($note_box) {
|
||||||
|
|||||||
@@ -116,13 +116,6 @@ div#note-container {
|
|||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.bg {
|
|
||||||
height: 100%;
|
|
||||||
text-align: center;
|
|
||||||
display: table-cell;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.ui-resizable-handle {
|
div.ui-resizable-handle {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user