mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Replace double quotes with single quotes
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
96bc1397b1
commit
75edcad549
2 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue