Remove the double password confirmation on changing cron

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/3827/head
Joas Schilling 8 years ago
parent c1cf872f1d
commit beb3f92c4d
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
  1. 1
      core/js/public/appconfig.js
  2. 9
      settings/js/admin.js

@ -38,6 +38,7 @@ OCP.AppConfig = {
return;
}
options = options || {};
$.ajax({
type: method.toUpperCase(),
url: OC.linkToOCS('apps/provisioning_api/api/v1', 2) + 'config/apps' + endpoint,

@ -46,9 +46,12 @@ $(document).ready(function(){
if($(this).is(':checked')){
var mode = $(this).val();
if (mode === 'ajax' || mode === 'webcron' || mode === 'cron') {
OCP.AppConfig.setValue('core', 'backgroundjobs_mode', mode);
// clear cron errors on background job mode change
OCP.AppConfig.deleteKey('core', 'cronErrors');
OCP.AppConfig.setValue('core', 'backgroundjobs_mode', mode, {
success: function() {
// clear cron errors on background job mode change
OCP.AppConfig.deleteKey('core', 'cronErrors');
}
});
}
}
});

Loading…
Cancel
Save