diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-26 22:05:34 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-26 22:05:34 -0400 |
commit | 59cf1d19e593efd9d376c3426a6214c438ca7b3d (patch) | |
tree | 20f0d157b7b5f56eddc7fdd79a0c31fd72993e10 /settings/js | |
parent | 617449b230fd3c7628e6a9aa3bc3425492b6328e (diff) | |
download | nextcloud-server-59cf1d19e593efd9d376c3426a6214c438ca7b3d.tar.gz nextcloud-server-59cf1d19e593efd9d376c3426a6214c438ca7b3d.zip |
setbackgroundjobsmode.php got lost somewhere - switched call to use the perferred OC.AppConfig.setValue() instead
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/admin.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index 409594a4b94..57a67b54998 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -7,7 +7,10 @@ $(document).ready(function(){ $('#backgroundjobs input').change(function(){ if($(this).attr('checked')){ - $.post(OC.filePath('settings','ajax','setbackgroundjobsmode.php'), { mode: $(this).val() }); + var mode = $(this).val(); + if (mode == 'ajax' || mode == 'webcron' || mode == 'cron') { + OC.AppConfig.setValue('core', 'backgroundjobs_mode', mode); + } } }); });
\ No newline at end of file |