summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/js/settings-admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federatedfilesharing/js/settings-admin.js')
-rw-r--r--apps/federatedfilesharing/js/settings-admin.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/js/settings-admin.js b/apps/federatedfilesharing/js/settings-admin.js
new file mode 100644
index 00000000000..95578bff548
--- /dev/null
+++ b/apps/federatedfilesharing/js/settings-admin.js
@@ -0,0 +1,12 @@
+$(document).ready(function() {
+
+ $('#fileSharingSettings input').change(function() {
+ var value = 'no';
+ if (this.checked) {
+ value = 'yes';
+ }
+ OC.AppConfig.setValue('files_sharing', $(this).attr('name'), value);
+ });
+
+ $('.section .icon-info').tipsy({gravity: 'w'});
+});