From 0c4575db7a3de781231571e26e848441ec040f68 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Fri, 24 Aug 2012 15:11:33 -0400 Subject: [PATCH] Temporary fix to prevent rename action in root of Shared directory --- apps/files/js/fileactions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 39e848cec8..89e7bdd7ad 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -77,6 +77,10 @@ FileActions={ parent.children('a.name').append(''); 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){