aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-07-29 12:11:53 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-07-29 12:11:53 -0400
commit1fc41a7bfc507e6f041e2db34ebf044a49e928a5 (patch)
treeb3e7b857536f2c0bdbc797152356a50e2fe59352 /apps/files_sharing/js
parentfcc9f506417647a5b38f3ae9398730f064177e27 (diff)
downloadnextcloud-server-1fc41a7bfc507e6f041e2db34ebf044a49e928a5.tar.gz
nextcloud-server-1fc41a7bfc507e6f041e2db34ebf044a49e928a5.zip
Integrate sharing app with the new interface
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/share.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 32926c6811e..0562c3cb132 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -1,6 +1,5 @@
$(document).ready(function() {
- $('.share').click(function(event) {
- event.preventDefault();
+ FileActions.register('all', 'Share', OC.imagePath('core', 'actions/share'), function(filename) {
var html = "<div id='dialog' title='Share "+getSelectedFiles('name')+"' align='center'>";
html += "<label><input type='radio' name='share_type' value='private' checked='checked' /> Private</label>";
html += "<label><input type='radio' name='share_type' value='public' /> Public</label>";