]> source.dussan.org Git - nextcloud-server.git/commitdiff
Temporary fix to prevent rename action in root of Shared directory
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 24 Aug 2012 19:11:33 +0000 (15:11 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Fri, 24 Aug 2012 19:12:16 +0000 (15:12 -0400)
apps/files/js/fileactions.js

index 39e848cec8096a83bb842995dc4003ff71fcc255..89e7bdd7ad744987ce5e9e2840a9b6ff53df2969 100644 (file)
@@ -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){