summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-27 20:36:34 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-27 20:39:31 -0400
commit9cd55508c3181ff59080f84a341bd5ecf3e88eab (patch)
tree35c3874e37d2026244318895151bfc997f6c9636 /apps
parent2aac6f02a0dd3da73db09e1b23aa14cb84d4d88e (diff)
downloadnextcloud-server-9cd55508c3181ff59080f84a341bd5ecf3e88eab.tar.gz
nextcloud-server-9cd55508c3181ff59080f84a341bd5ecf3e88eab.zip
Add Share API settings to admin page
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 8754b16b061..79ab4adebac 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -1,6 +1,6 @@
$(document).ready(function() {
- if (typeof FileActions !== 'undefined') {
+ if (typeof OC.Share !== 'undefined' && typeof FileActions !== 'undefined') {
OC.Share.loadIcons('file');
FileActions.register('all', 'Share', FileActions.PERMISSION_READ, function(filename) {
// Return the correct sharing icon