summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-09 01:02:05 +0200
committerJakob Sack <mail@jakobsack.de>2012-08-09 01:02:05 +0200
commit13a0818fec4ac758fb050764fb33d90c74200cfe (patch)
treecf66f2a014063bdec85e3177a0b8f068898f9e0d /lib
parent7fa896971ffaac5daa5efd7408f58c67ec56f493 (diff)
downloadnextcloud-server-13a0818fec4ac758fb050764fb33d90c74200cfe.tar.gz
nextcloud-server-13a0818fec4ac758fb050764fb33d90c74200cfe.zip
Be more precise regarding backgroundjobs mode
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index c3887dec2f8..090d05cdbae 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -227,11 +227,17 @@ class OC{
OC_Util::addScript( "jquery.infieldlabel.min" );
OC_Util::addScript( "jquery-tipsy" );
OC_Util::addScript( "oc-dialogs" );
+ OC_Util::addScript( "backgroundjobs" );
OC_Util::addScript( "js" );
OC_Util::addScript( "eventsource" );
OC_Util::addScript( "config" );
//OC_Util::addScript( "multiselect" );
OC_Util::addScript('search','result');
+
+ if( OC_Appconfig::getValue( 'core', 'backgroundjob_mode', 'ajax' ) == 'ajax' ){
+ OC_Util::addScript( 'backgroundjobs' );
+ }
+
OC_Util::addStyle( "styles" );
OC_Util::addStyle( "multiselect" );
OC_Util::addStyle( "jquery-ui-1.8.16.custom" );