summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-07 12:42:09 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-07 12:42:09 +0100
commitc72537cd852583b64914e1e8da55d8520e64d554 (patch)
tree9a8850a0f57d68becd9c43ce7182fa5dbf68fe17 /apps/files/js/fileactions.js
parent35bd7a400d30fb27703d4fa02b107f9629845b7d (diff)
downloadnextcloud-server-c72537cd852583b64914e1e8da55d8520e64d554.tar.gz
nextcloud-server-c72537cd852583b64914e1e8da55d8520e64d554.zip
don't call the delete button unshare, unshare operation no longer available
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index af3fc483910..e1d8b60d315 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -112,10 +112,7 @@ var FileActions = {
if (img.call) {
img = img(file);
}
- // 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) {
+ 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" />';