summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js5
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