Use full names instead of abbreviations in variable names
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
3baa078f70
commit
e46a67ef4c
1 changed files with 8 additions and 8 deletions
|
@ -65,21 +65,21 @@
|
|||
this.$el.on('click', 'li a', _.bind(this._onClickItem, this));
|
||||
this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this));
|
||||
|
||||
var trashElement = $('.nav-trashbin');
|
||||
trashElement.droppable({
|
||||
var trashBinElement = $('.nav-trashbin');
|
||||
trashBinElement.droppable({
|
||||
over: function (event, ui) {
|
||||
trashElement.addClass('dropzone-background');
|
||||
trashBinElement.addClass('dropzone-background');
|
||||
},
|
||||
out: function (event, ui) {
|
||||
trashElement.removeClass('dropzone-background');
|
||||
trashBinElement.removeClass('dropzone-background');
|
||||
},
|
||||
activate: function (event, ui) {
|
||||
var elem = trashElement.find('a').first();
|
||||
elem.addClass('nav-icon-trashbin-starred').removeClass('nav-icon-trashbin');
|
||||
var element = trashBinElement.find('a').first();
|
||||
element.addClass('nav-icon-trashbin-starred').removeClass('nav-icon-trashbin');
|
||||
},
|
||||
deactivate: function (event, ui) {
|
||||
var elem = trashElement.find('a').first();
|
||||
elem.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred');
|
||||
var element = trashBinElement.find('a').first();
|
||||
element.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred');
|
||||
},
|
||||
drop: function (event, ui) {
|
||||
var $selectedFiles = $(ui.draggable);
|
||||
|
|
Loading…
Reference in a new issue