]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure jquery and common javascript is loaded before the javascript of the apps
authorRobin Appelman <icewind1991@gmail.com>
Sun, 31 Jul 2011 00:24:46 +0000 (02:24 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sun, 31 Jul 2011 00:24:46 +0000 (02:24 +0200)
lib/base.php

index 8c550d74fb89de8303d5a260ba6d2498a69f416b..2c29d9c571df5f6eb99e5fbcc090fe81acff0923 100644 (file)
@@ -92,6 +92,13 @@ if( !OC_Config::getValue( "installed", false )){
 OC_User::useBackend( OC_Config::getValue( "userbackend", "database" ));
 OC_Group::setBackend( OC_Config::getValue( "groupbackend", "database" ));
 
+// Add the stuff we need always
+OC_Util::addScript( "jquery-1.6.2.min" );
+OC_Util::addScript( "jquery-ui-1.8.14.custom.min" );
+OC_Util::addScript( "js" );
+OC_Util::addStyle( "jquery-ui-1.8.14.custom" );
+OC_Util::addStyle( "styles" );
+
 // Load Apps
 // This includes plugins for users and filesystems as well
 if(!$error and !$RUNTIME_NOAPPS ){
@@ -106,13 +113,6 @@ if(!$error and !$RUNTIME_NOSETUPFS ){
        OC_Util::setupFS();
 }
 
-// Add the stuff we need always
-OC_Util::addScript( "jquery-1.6.2.min" );
-OC_Util::addScript( "jquery-ui-1.8.14.custom.min" );
-OC_Util::addScript( "js" );
-OC_Util::addStyle( "jquery-ui-1.8.14.custom" );
-OC_Util::addStyle( "styles" );
-
 
 // FROM Connect.php
 function OC_CONNECT_TEST($path,$user,$password){