Refactored Variablename to trashElement

Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
This commit is contained in:
Felix Nüsse 2018-08-29 12:00:10 +02:00 committed by John Molakvoæ (skjnldsv)
parent 91d1154ee0
commit df7e016104
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF

View file

@ -65,23 +65,23 @@
this.$el.on('click', 'li a', _.bind(this._onClickItem, this))
this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this));
var favListElement=$(".nav-trashbin");
var trashElement=$(".nav-trashbin");
//this div is required to prefetch the icon, otherwise it takes a second to show up
favListElement.append("<div class='nav-icon-trashbin-starred'></div>")
favListElement.droppable({
trashElement.append("<div class='nav-icon-trashbin-starred'></div>")
trashElement.droppable({
over: function( event, ui ) {
favListElement.addClass('dropzone-background')
trashElement.addClass('dropzone-background')
},
out: function( event, ui ) {
favListElement.removeClass('dropzone-background');
trashElement.removeClass('dropzone-background');
},
activate: function( event, ui ) {
var elem=favListElement.find("a").first();
var elem=trashElement.find("a").first();
elem.addClass('nav-icon-trashbin-starred').removeClass('nav-icon-trashbin');
},
deactivate: function( event, ui ) {
var elem=favListElement.find("a").first();
var elem=trashElement.find("a").first();
elem.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred');
},
drop: function( event, ui ) {