diff --git a/settings/js/admin.js b/settings/js/admin.js index 409594a4b94698840f70afd56f382defe245cdf5..57a67b54998add335d578f5ed771fa1e9da39265 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