From b369adbd9487496d799cf04f66fcc72a002ccda5 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Wed, 25 Apr 2012 11:51:18 -0400 Subject: Allow admin to disable resharing of files --- apps/files_sharing/js/settings.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 apps/files_sharing/js/settings.js (limited to 'apps/files_sharing/js') 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 -- cgit v1.2.3