diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-21 10:01:24 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-21 10:01:24 +0300 |
commit | 302bdf17d6ec306dc6a9d64a074c77268b3e0acc (patch) | |
tree | 7c9f048baada3433d1d3154bec6772029424ce5a /js/admin.js | |
parent | 0b5351c5824adefa3c91b8a86b07f5c52b2f370e (diff) |
Fix OC.AppConfig usage to public API
Diffstat (limited to 'js/admin.js')
-rw-r--r-- | js/admin.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/js/admin.js b/js/admin.js index 49c25f3..cb928f3 100644 --- a/js/admin.js +++ b/js/admin.js @@ -4,13 +4,16 @@ $(document).ready(function() { var $button = $(this); $button.attr('disabled', true); - OC.AppConfig.postCall('setValue', { - app: 'survey_client', - key: $(this).attr('name').substring(14), - value: $(this).attr('checked') ? 'yes' : 'no' - }, function() { - $button.attr('disabled', false); - }); + OCP.AppConfig.setValue( + 'survey_client', + $(this).attr('name').substring(14), + $(this).attr('checked') ? 'yes' : 'no', + { + success: function() { + $button.attr('disabled', false); + } + } + ); }); $section.find('#survey_client_monthly_report').change(function() { |