summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-01-31 19:13:08 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-01-31 19:55:51 +0100
commit3baa078f702f591af3aa8db31f166383d6a54a80 (patch)
tree67fd17b78d34662a9c59351e84d9c4267018cb45
parent75edcad54914a0c092fcf2eda5c22c379c93d71e (diff)
downloadnextcloud-server-3baa078f702f591af3aa8db31f166383d6a54a80.tar.gz
nextcloud-server-3baa078f702f591af3aa8db31f166383d6a54a80.zip
Make code format more consistent with the rest of the file
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--apps/files/js/navigation.js23
1 files changed, 11 insertions, 12 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js
index 8ef9342aea7..94d247b575a 100644
--- a/apps/files/js/navigation.js
+++ b/apps/files/js/navigation.js
@@ -65,32 +65,31 @@
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 ) {
+ over: function (event, ui) {
trashElement.addClass('dropzone-background');
},
- out: function( event, ui ) {
+ out: function (event, ui) {
trashElement.removeClass('dropzone-background');
},
- activate: function( event, ui ) {
- var elem=trashElement.find('a').first();
+ activate: function (event, ui) {
+ 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();
+ deactivate: function (event, ui) {
+ var elem = trashElement.find('a').first();
elem.addClass('nav-icon-trashbin').removeClass('nav-icon-trashbin-starred');
},
- drop: function( event, ui ) {
-
+ 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'));
- }else{
+ } else {
var item = ui.helper.find('tr');
- for(var i=0; i<item.length;i++){
+ for (var i = 0; i < item.length; i++) {
$selectedFiles.trigger('droppedOnTrash', item[i].getAttribute('data-file'), item[i].getAttribute('data-dir'));
}
}