aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-09 10:41:10 +0200
committerJakob Sack <mail@jakobsack.de>2012-08-09 10:41:10 +0200
commit1ce2cd73ffd9c76912f8ba03809a5b347cec38a9 (patch)
tree62c4462c94de94965be7f6def7f350404608998f /settings/js
parent889f0a1c6df51c5b6495445809143940ad17c327 (diff)
downloadnextcloud-server-1ce2cd73ffd9c76912f8ba03809a5b347cec38a9.tar.gz
nextcloud-server-1ce2cd73ffd9c76912f8ba03809a5b347cec38a9.zip
Add first version of backgroundjobs settings
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/admin.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index 4f295ab6f5d..409594a4b94 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -3,5 +3,11 @@ $(document).ready(function(){
$.post(OC.filePath('settings','ajax','setloglevel.php'), { level: $(this).val() },function(){
OC.Log.reload();
} );
- })
+ });
+
+ $('#backgroundjobs input').change(function(){
+ if($(this).attr('checked')){
+ $.post(OC.filePath('settings','ajax','setbackgroundjobsmode.php'), { mode: $(this).val() });
+ }
+ });
}); \ No newline at end of file