mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
setbackgroundjobsmode.php got lost somewhere - switched call to use the perferred OC.AppConfig.setValue() instead
This commit is contained in:
parent
617449b230
commit
59cf1d19e5
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue