diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-01-26 14:07:35 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-01-26 14:07:35 +0100 |
commit | 2e42c6f54f85c5ac5b339625d04685535ac69d40 (patch) | |
tree | 8fc1c6c3118aa03e9581947d724497159f79e638 /apps/files_sharing/js/share.js | |
parent | 6c882d980681882134a93cfbb367fed816dfbb53 (diff) | |
download | nextcloud-server-2e42c6f54f85c5ac5b339625d04685535ac69d40.tar.gz nextcloud-server-2e42c6f54f85c5ac5b339625d04685535ac69d40.zip |
Use HTML5 data attribute + fix undefined variable
Diffstat (limited to 'apps/files_sharing/js/share.js')
-rw-r--r-- | apps/files_sharing/js/share.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 780b9c1bf6d..eb5a6e8cb7f 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -1,5 +1,7 @@ $(document).ready(function() { + var disableSharing = $('#disableSharing').data('status'); + if (typeof OC.Share !== 'undefined' && typeof FileActions !== 'undefined' && !disableSharing) { FileActions.register('all', 'Share', OC.PERMISSION_READ, OC.imagePath('core', 'actions/share'), function(filename) { |