summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-04-25 11:51:18 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-04-25 11:51:30 -0400
commitb369adbd9487496d799cf04f66fcc72a002ccda5 (patch)
treef77e57ba3b7e06019dd284e550abeba76092f360 /apps/files_sharing/js
parenta3dff248a1f4d34ccbf7bf0120109c0d910fc548 (diff)
downloadnextcloud-server-b369adbd9487496d799cf04f66fcc72a002ccda5.tar.gz
nextcloud-server-b369adbd9487496d799cf04f66fcc72a002ccda5.zip
Allow admin to disable resharing of files
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/settings.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_sharing/js/settings.js b/apps/files_sharing/js/settings.js
new file mode 100644
index 00000000000..f1b1643e7d6
--- /dev/null
+++ b/apps/files_sharing/js/settings.js
@@ -0,0 +1,9 @@
+$(document).ready(function() {
+ $('#allowResharing').bind('change', function() {
+ var checked = 1;
+ if (!$('#allowResharing').attr('checked')) {
+ checked = 0;
+ }
+ $.post(OC.filePath('files_sharing','ajax','toggleresharing.php'), 'resharing='+checked);
+ });
+}); \ No newline at end of file