Remove hack to prefetch the starred trash icon
Since 6ad7f32938
SVG icons are directly embedded in "icons-vars.css", so
the starred trash icon is now loaded along with the regular trash icon
all at once. Therefore it is not needed to explicitly prefetch it using
a hidden div.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
61ee72a89d
commit
2aee19a4ba
|
@ -66,9 +66,6 @@
|
|||
this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this));
|
||||
|
||||
var trashElement=$(".nav-trashbin");
|
||||
|
||||
//this div is required to prefetch the icon, otherwise it takes a second to show up
|
||||
trashElement.append("<div class='nav-icon-trashbin-starred'></div>")
|
||||
trashElement.droppable({
|
||||
over: function( event, ui ) {
|
||||
trashElement.addClass('dropzone-background')
|
||||
|
|
Loading…
Reference in New Issue