diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-27 20:36:34 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-27 20:39:31 -0400 |
commit | 9cd55508c3181ff59080f84a341bd5ecf3e88eab (patch) | |
tree | 35c3874e37d2026244318895151bfc997f6c9636 /settings/js/admin.js | |
parent | 2aac6f02a0dd3da73db09e1b23aa14cb84d4d88e (diff) | |
download | nextcloud-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.js | 14 |
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 |