diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 2 | ||||
-rw-r--r-- | apps/files/js/navigation.js | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 44d607ada49..685cb03fed9 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -360,7 +360,7 @@ this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this)); - this.$fileList.on("droppedOnTrash", function (event, filename, directory) { + this.$fileList.on('droppedOnTrash', function (event, filename, directory) { self.do_delete(filename, directory); }); diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index 877b3184a51..8ef9342aea7 100644 --- a/apps/files/js/navigation.js +++ b/apps/files/js/navigation.js @@ -65,7 +65,7 @@ this.$el.on('click', 'li a', _.bind(this._onClickItem, this)); this.$el.on('click', 'li button', _.bind(this._onClickMenuButton, this)); - var trashElement=$(".nav-trashbin"); + var trashElement=$('.nav-trashbin'); trashElement.droppable({ over: function( event, ui ) { trashElement.addClass('dropzone-background'); @@ -74,24 +74,24 @@ trashElement.removeClass('dropzone-background'); }, activate: function( event, ui ) { - var elem=trashElement.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=trashElement.find("a").first(); + var elem=trashElement.find('a').first(); elem.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred'); }, drop: function( event, ui ) { var $selectedFiles = $(ui.draggable); - if (ui.helper.find("tr").size()===1) { + if (ui.helper.find('tr').size()===1) { var $tr = $selectedFiles.closest('tr'); - $selectedFiles.trigger("droppedOnTrash", $tr.attr("data-file"), $tr.attr('data-dir')); + $selectedFiles.trigger('droppedOnTrash', $tr.attr('data-file'), $tr.attr('data-dir')); }else{ - var item = ui.helper.find("tr"); + var item = ui.helper.find('tr'); for(var i=0; i<item.length;i++){ - $selectedFiles.trigger("droppedOnTrash", item[i].getAttribute("data-file"), item[i].getAttribute("data-dir")); + $selectedFiles.trigger('droppedOnTrash', item[i].getAttribute('data-file'), item[i].getAttribute('data-dir')); } } } |