click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r928368 - /click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
Date Sun, 28 Mar 2010 09:58:11 GMT
Author: sabob
Date: Sun Mar 28 09:58:10 2010
New Revision: 928368

URL: http://svn.apache.org/viewvc?rev=928368&view=rev
Log:
added resource version indicator to elements

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java?rev=928368&r1=928367&r2=928368&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java Sun Mar 28 09:58:10
2010
@@ -895,13 +895,16 @@ public class Menu extends AbstractContro
         if (headElements == null) {
             headElements = super.getHeadElements();
 
-            CssImport cssImport = new CssImport("/click/menu.css");
+            Context context = getContext();
+            String versionIndicator = ClickUtils.getResourceVersionIndicator(context);
+
+            CssImport cssImport = new CssImport("/click/menu.css", versionIndicator);
             headElements.add(cssImport);
 
-            JsImport jsImport = new JsImport("/click/control.js");
+            JsImport jsImport = new JsImport("/click/control.js", versionIndicator);
             headElements.add(jsImport);
 
-            jsImport = new JsImport("/click/menu-fix-ie6.js");
+            jsImport = new JsImport("/click/menu-fix-ie6.js", versionIndicator);
             jsImport.setConditionalComment(JsImport.IF_LESS_THAN_IE7);
             headElements.add(jsImport);
         }



Mime
View raw message