aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-06 16:23:22 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-06 16:23:22 +0100
commite2516a2b65185bd3081361d0b8f25e6eaf7d698f (patch)
tree6b982ece824887e497cee652e435f94af7a0e2f1 /apps/files/js/fileactions.js
parent9e08f85c5e8b57d759cecc9ca145a816e121fe6c (diff)
downloadnextcloud-server-e2516a2b65185bd3081361d0b8f25e6eaf7d698f.tar.gz
nextcloud-server-e2516a2b65185bd3081361d0b8f25e6eaf7d698f.zip
allow to delete single files from the trash bin permanently
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index c30f1bcddd8..af3fc483910 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -115,6 +115,8 @@ var FileActions = {
// NOTE: Temporary fix to allow unsharing of files in root of Shared folder
if ($('#dir').val() == '/Shared') {
var html = '<a href="#" original-title="' + t('files', 'Unshare') + '" class="action delete" />';
+ } else if (typeof trashBinApp !== 'undefined' && trashBinApp) {
+ var html = '<a href="#" original-title="' + t('files', 'Delete permanently') + '" class="action delete" />';
} else {
var html = '<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" />';
}