setbackgroundjobsmode.php got lost somewhere - switched call to use the perferred OC.AppConfig.setValue() instead

This commit is contained in:
Michael Gapczynski 2012-08-26 22:05:34 -04:00
parent 617449b230
commit 59cf1d19e5

View file

@ -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);
}
}
});
});