Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-27 06:05:34 +0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-27 06:05:34 +0400
commit59cf1d19e593efd9d376c3426a6214c438ca7b3d (patch)
tree20f0d157b7b5f56eddc7fdd79a0c31fd72993e10
parent617449b230fd3c7628e6a9aa3bc3425492b6328e (diff)
setbackgroundjobsmode.php got lost somewhere - switched call to use the perferred OC.AppConfig.setValue() instead
-rw-r--r--settings/js/admin.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 409594a4b94..57a67b54998 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -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