]> source.dussan.org Git - archiva.git/commitdiff
ensure jquery ui is correctly loaded
authorOlivier Lamy <olamy@apache.org>
Thu, 23 Aug 2012 14:22:34 +0000 (14:22 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 23 Aug 2012 14:22:34 +0000 (14:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1376501 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/archiva.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js

index 66c2e6d1cb7f6ec1165ecc797ad94de60124be91..8a63149d4c151dab5e61430e20dfdd8df6164a50 100644 (file)
@@ -51,7 +51,7 @@ $.ajax({
                 urlArgs: ""+appendJsNoCacheUrl(),
                 shim: {
                       'sammy':['jquery','jquery.tmpl'],
-                      'archiva.main':['jquery','sammy','jquery.tmpl'],
+                      'archiva.main':['jquery','jquery.ui','sammy','jquery.tmpl'],
                       'utils':['jquery','jquery.tmpl'],
                       'archiva.templates': ['jquery','jquery.tmpl','utils'],
                       'redback.templates': ['jquery','jquery.tmpl','utils']
@@ -97,7 +97,7 @@ $.ajax({
                 }
             });
 
-            requirejs(['jquery','jquery.tmpl','i18n','sammy','startup','utils','domReady!'], function (domReady) {
+            requirejs(['jquery','jquery.tmpl','jquery.ui','i18n','sammy','startup','utils','domReady!'], function (domReady) {
                 loadi18n(function () {
                   $.ajax({
                       url: "restServices/archivaUiServices/runtimeInfoService/archivaRuntimeInfo/"+usedLang(),
index 93299d01b12d24734f1cba30bb4161027a97719b..5d45986b91e56b8bd8f8283bada127af78a0e123 100644 (file)
@@ -20,7 +20,7 @@ define("archiva.main",["jquery","sammy","jquery.tmpl","jquery.ui","jquery.cookie
          "jquery.validate","jquery.json","knockout","redback.templates","archiva.templates",
           "redback.roles","redback","archiva.general-admin","archiva.repositories",
           "archiva.network-proxies","archiva.proxy-connectors","archiva.repository-groups","archiva.artifacts-management"],
-function() {
+function($,sammy,tmpl,ui) {
 
   /**
    * reccord a cookie for session with the logged user