]> source.dussan.org Git - archiva.git/commitdiff
fix doc with no cache parameter
authorOlivier Lamy <olamy@apache.org>
Tue, 24 Jan 2012 18:23:10 +0000 (18:23 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 24 Jan 2012 18:23:10 +0000 (18:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1235394 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt

index 70ed036669ad6c873156c32b588384b88c60ec5b..2a29477c99424224ac6ef282993f54caa301684a 100644 (file)
@@ -32,20 +32,23 @@ Html/Javascript templates loading
 
   They are loaded using requirejs and the text plugin.
 
-  archiva tamplates are loaded as it:
+  archiva templates are loaded as it <<<NOTE: the no cache is activated only on dev mode>>>
 
 +-------------------------
-require(["text!archiva/templates/menu.html","text!archiva/templates/topbar.html","text!archiva/templates/message.html",
-          "text!archiva/templates/modal.html","text!archiva/templates/grids-generics.html","text!archiva/templates/repositories.html"],
+require(["text!archiva/templates/menu.html?"+timestampNoCache(),"text!archiva/templates/topbar.html?"+timestampNoCache(),
+          "text!archiva/templates/message.html?"+timestampNoCache(),"text!archiva/templates/modal.html?"+timestampNoCache(),
+          "text!archiva/templates/grids-generics.html?"+timestampNoCache(),
+          "text!archiva/templates/repositories.html?"+timestampNoCache()],
   function(menu,topbar,message,modal,grids_generics,repositories) {
 
     // template loading
-    $.tmpl( menu, $.i18n.map ).appendTo("#html-fragments");
-    $.tmpl( topbar, $.i18n.map ).appendTo("#html-fragments");
-    $.tmpl( modal, $.i18n.map ).appendTo("#html-fragments");
+    $.tmpl( menu ).appendTo("#html-fragments");
+    $.tmpl( topbar ).appendTo("#html-fragments");
     $("#html-fragments").append(message);
+    $.tmpl( modal ).appendTo("#html-fragments");
     $("#html-fragments").append(grids_generics);
     $("#html-fragments").append(repositories);
+    $.log("main-tmpl.js menu loaded");
   }
 );
 +-------------------------