Skip to content
Snippets Groups Projects
Commit 59cf1d19 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

setbackgroundjobsmode.php got lost somewhere - switched call to use the...

setbackgroundjobsmode.php got lost somewhere - switched call to use the perferred OC.AppConfig.setValue() instead
parent 617449b2
Branches
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment