Fix spinner when deleting all files in a folder

This commit is contained in:
Vincent Petry 2015-08-18 11:14:41 +02:00
parent 03965053c3
commit 730f1d199a

View file

@ -1748,7 +1748,7 @@
// no files passed, delete all in current dir
params.allfiles = true;
// show spinner for all files
this.$fileList.find('tr').addClass('busy');
this.showFileBusyState(this.$fileList.find('tr'), true);
}
$.post(OC.filePath('files', 'ajax', 'delete.php'),
@ -1791,7 +1791,7 @@
}
else {
$.each(files,function(index,file) {
self.$fileList.find('tr').removeClass('busy');
self.showFileBusyState(file, false);
});
}
}