summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-24 15:11:33 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-24 15:12:16 -0400
commit0c4575db7a3de781231571e26e848441ec040f68 (patch)
tree0b1176e4078739a1aa91e39f216745052c060559
parent7168fa4b05db038e24c649dad5a60cfe2230c476 (diff)
downloadnextcloud-server-0c4575db7a3de781231571e26e848441ec040f68.tar.gz
nextcloud-server-0c4575db7a3de781231571e26e848441ec040f68.zip
Temporary fix to prevent rename action in root of Shared directory
-rw-r--r--apps/files/js/fileactions.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 39e848cec80..89e7bdd7ad7 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -77,6 +77,10 @@ FileActions={
parent.children('a.name').append('<span class="fileactions" />');
var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType(), FileActions.getCurrentPermissions());
for(name in actions){
+ // NOTE: Temporary fix to prevent rename action in root of Shared directory
+ if (name == 'Rename' && $('#dir').val() == '/Shared') {
+ continue;
+ }
if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){
var img=FileActions.icons[name];
if(img.call){