diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-09 14:52:03 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-09 14:52:03 -0400 |
commit | 5c5955b31f25aa637edf955580508aa1a333777a (patch) | |
tree | 02b8f34256b3febab5c040dfc2f0ec81ca3757b6 | |
parent | 6c17a4cb77f50ce851ce8f3bc9a94f7f40967df0 (diff) | |
download | nextcloud-server-5c5955b31f25aa637edf955580508aa1a333777a.tar.gz nextcloud-server-5c5955b31f25aa637edf955580508aa1a333777a.zip |
Disable link sharing for folders temporarily - next release
-rw-r--r-- | apps/files_sharing/js/share.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index a171751589a..9d0e2c90f88 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -39,8 +39,10 @@ $(document).ready(function() { var tr = $('tr').filterAttr('data-file', filename); if ($(tr).data('type') == 'dir') { var itemType = 'folder'; + var link = false; } else { var itemType = 'file'; + var link = true; } var possiblePermissions = $(tr).data('permissions'); var appendTo = $(tr).find('td.filename'); @@ -49,14 +51,14 @@ $(document).ready(function() { if (item != $('#dropdown').data('item')) { OC.Share.hideDropDown(function () { $(tr).addClass('mouseOver'); - OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions); + OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, link, possiblePermissions); }); } else { OC.Share.hideDropDown(); } } else { $(tr).addClass('mouseOver'); - OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, true, possiblePermissions); + OC.Share.showDropDown(itemType, $(tr).data('id'), appendTo, link, possiblePermissions); } }); } |