Refactored Variablename to trashElement
Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
This commit is contained in:
parent
91d1154ee0
commit
df7e016104
1 changed files with 7 additions and 7 deletions
|
@ -65,23 +65,23 @@
|
||||||
this.$el.on('click', 'li a', _.bind(this._onClickItem, this))
|
this.$el.on('click', 'li a', _.bind(this._onClickItem, this))
|
||||||
this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, 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
|
//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>")
|
trashElement.append("<div class='nav-icon-trashbin-starred'></div>")
|
||||||
favListElement.droppable({
|
trashElement.droppable({
|
||||||
over: function( event, ui ) {
|
over: function( event, ui ) {
|
||||||
favListElement.addClass('dropzone-background')
|
trashElement.addClass('dropzone-background')
|
||||||
},
|
},
|
||||||
out: function( event, ui ) {
|
out: function( event, ui ) {
|
||||||
favListElement.removeClass('dropzone-background');
|
trashElement.removeClass('dropzone-background');
|
||||||
},
|
},
|
||||||
activate: function( event, ui ) {
|
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');
|
elem.addClass('nav-icon-trashbin-starred').removeClass('nav-icon-trashbin');
|
||||||
},
|
},
|
||||||
deactivate: function( event, ui ) {
|
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');
|
elem.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred');
|
||||||
},
|
},
|
||||||
drop: function( event, ui ) {
|
drop: function( event, ui ) {
|
||||||
|
|
Loading…
Reference in a new issue