diff options
author | Brice Maron <brice@bmaron.net> | 2012-11-16 14:59:14 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-11-16 14:59:14 +0000 |
commit | 02bc44090017d457fbcf59ec965a0a98ebf82bb3 (patch) | |
tree | 3248d6c86d9677b304c5f10f573127297e2a15da | |
parent | d1c0f2a7393d82629bec961e056856846bd05465 (diff) | |
download | nextcloud-server-02bc44090017d457fbcf59ec965a0a98ebf82bb3.tar.gz nextcloud-server-02bc44090017d457fbcf59ec965a0a98ebf82bb3.zip |
Show error message to prevent adding a shared folder in the root dir fix #468
-rw-r--r-- | apps/files/js/files.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 982351c589e..abde963e423 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -495,6 +495,10 @@ $(document).ready(function() { $('#notification').text(t('files','Invalid name, \'/\' is not allowed.')); $('#notification').fadeIn(); return; + } else if( type == 'folder' && $('#dir').val() == '/' && $(this).val() == 'Shared') { + $('#notification').text(t('files','Invalid folder name. Usage of "Shared" is reserved by Owncloud')); + $('#notification').fadeIn(); + return; } var name = getUniqueName($(this).val()); if (name != $(this).val()) { |