summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
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 /settings/js/admin.js
parent2aac6f02a0dd3da73db09e1b23aa14cb84d4d88e (diff)
downloadnextcloud-server-9cd55508c3181ff59080f84a341bd5ecf3e88eab.tar.gz
nextcloud-server-9cd55508c3181ff59080f84a341bd5ecf3e88eab.zip
Add Share API settings to admin page
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 57a67b54998..8b1494881a5 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -13,4 +13,18 @@ $(document).ready(function(){
}
}
});
+
+ $('#shareAPIEnabled').change(function() {
+ $('.shareAPI td:not(#enable)').toggle();
+ });
+
+ $('#shareAPI input').change(function() {
+ if ($(this).attr('type') == 'radio') {
+ console.log('radio');
+ }
+ if ($(this).attr('type') == 'checkbox') {
+ console.log('checked');
+ }
+ OC.AppConfig.setValue('core', 'shareapi_', $(this).val());
+ });
}); \ No newline at end of file