diff options
Diffstat (limited to 'settings/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 |