Remove the double password confirmation on changing cron
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
c1cf872f1d
commit
beb3f92c4d
|
@ -38,6 +38,7 @@ OCP.AppConfig = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options = options || {};
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: method.toUpperCase(),
|
type: method.toUpperCase(),
|
||||||
url: OC.linkToOCS('apps/provisioning_api/api/v1', 2) + 'config/apps' + endpoint,
|
url: OC.linkToOCS('apps/provisioning_api/api/v1', 2) + 'config/apps' + endpoint,
|
||||||
|
|
|
@ -46,10 +46,13 @@ $(document).ready(function(){
|
||||||
if($(this).is(':checked')){
|
if($(this).is(':checked')){
|
||||||
var mode = $(this).val();
|
var mode = $(this).val();
|
||||||
if (mode === 'ajax' || mode === 'webcron' || mode === 'cron') {
|
if (mode === 'ajax' || mode === 'webcron' || mode === 'cron') {
|
||||||
OCP.AppConfig.setValue('core', 'backgroundjobs_mode', mode);
|
OCP.AppConfig.setValue('core', 'backgroundjobs_mode', mode, {
|
||||||
|
success: function() {
|
||||||
// clear cron errors on background job mode change
|
// clear cron errors on background job mode change
|
||||||
OCP.AppConfig.deleteKey('core', 'cronErrors');
|
OCP.AppConfig.deleteKey('core', 'cronErrors');
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue