summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js/filelist.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-30 22:34:37 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-11 17:58:33 +0100
commit80c8666d3abae0a4004e48ad9f580397e98c6ac0 (patch)
tree0995b4c11c375465c7a620bf57974d637ca53985 /apps/files_trashbin/js/filelist.js
parentda20fb79227a512181ab1531d23977a7d2a71c40 (diff)
downloadnextcloud-server-80c8666d3abae0a4004e48ad9f580397e98c6ac0.tar.gz
nextcloud-server-80c8666d3abae0a4004e48ad9f580397e98c6ac0.zip
Deleting all files in trash now only sends a single flag
To prevent having to send the list of all files for deletion, only set a flag "allfiles". This should make it a bit smoother when deleting 5000+ files. Also fixes some "empty trash" message issues.
Diffstat (limited to 'apps/files_trashbin/js/filelist.js')
-rw-r--r--apps/files_trashbin/js/filelist.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_trashbin/js/filelist.js b/apps/files_trashbin/js/filelist.js
index cd5a67ddfe0..f42abb6d029 100644
--- a/apps/files_trashbin/js/filelist.js
+++ b/apps/files_trashbin/js/filelist.js
@@ -22,3 +22,10 @@ FileList.reload = function(){
FileList.linkTo = function(dir){
return OC.linkTo('files_trashbin', 'index.php')+"?dir="+ encodeURIComponent(dir).replace(/%2F/g, '/');
}
+
+FileList.updateEmptyContent = function(){
+ var $fileList = $('#fileList');
+ var exists = $fileList.find('tr:first').exists();
+ $('#emptycontent').toggleClass('hidden', exists);
+ $('#filestable th').toggleClass('hidden', !exists);
+}