aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/navigation.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-01-31 19:09:15 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-01-31 19:55:51 +0100
commit75edcad54914a0c092fcf2eda5c22c379c93d71e (patch)
tree2dce34ef9b0e249d0d12206a454d54d40dbea0fc /apps/files/js/navigation.js
parent96bc1397b1d03d52da1befb685f331be5183e782 (diff)
downloadnextcloud-server-75edcad54914a0c092fcf2eda5c22c379c93d71e.tar.gz
nextcloud-server-75edcad54914a0c092fcf2eda5c22c379c93d71e.zip
Replace double quotes with single quotes
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/js/navigation.js')
-rw-r--r--apps/files/js/navigation.js14
1 files changed, 7 insertions, 7 deletions
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'));
}
}
}