diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-30 22:34:37 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-11 17:58:33 +0100 |
commit | 80c8666d3abae0a4004e48ad9f580397e98c6ac0 (patch) | |
tree | 0995b4c11c375465c7a620bf57974d637ca53985 /apps/files_trashbin/templates | |
parent | da20fb79227a512181ab1531d23977a7d2a71c40 (diff) | |
download | nextcloud-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/templates')
-rw-r--r-- | apps/files_trashbin/templates/index.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_trashbin/templates/index.php b/apps/files_trashbin/templates/index.php index 15ba074e45e..f9264d4352c 100644 --- a/apps/files_trashbin/templates/index.php +++ b/apps/files_trashbin/templates/index.php @@ -4,9 +4,7 @@ </div> <div id='notification'></div> -<?php if (isset($_['files']) && count($_['files']) === 0 && $_['dirlisting'] === false && !$_['ajaxLoad']):?> - <div id="emptycontent"><?php p($l->t('Nothing in here. Your trash bin is empty!'))?></div> -<?php endif; ?> +<div id="emptycontent" <?php if (!(isset($_['files']) && count($_['files']) === 0 && $_['dirlisting'] === false && !$_['ajaxLoad'])):?>class="hidden"<?php endif; ?>><?php p($l->t('Nothing in here. Your trash bin is empty!'))?></div> <input type="hidden" name="ajaxLoad" id="ajaxLoad" value="<?php p($_['ajaxLoad']); ?>" /> <input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>"></input> |