From 568d672d119fef448eb5e649198858ba365d89cf Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 24 Jan 2012 18:23:10 +0000 Subject: [PATCH] fix doc with no cache parameter git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1235394 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/site/apt/template-loading.apt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt b/archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt index 70ed03666..2a29477c9 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt @@ -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 <<>> +------------------------- -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"); } ); +------------------------- -- 2.39.5