click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r775665 - in /incubator/click/trunk/click/extras/src/org/apache/click/extras: control/AutoCompleteTextField.java control/SubmitLink.java prototype/CalendarField.java
Date Sun, 17 May 2009 14:51:23 GMT
Author: sabob
Date: Sun May 17 14:51:23 2009
New Revision: 775665

URL: http://svn.apache.org/viewvc?rev=775665&view=rev
Log:
fixed controls to render Click version indicator

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
    incubator/click/trunk/click/extras/src/org/apache/click/extras/control/SubmitLink.java
    incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java?rev=775665&r1=775664&r2=775665&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
Sun May 17 14:51:23 2009
@@ -275,11 +275,18 @@
 
         if (headElements == null) {
             headElements = super.getHeadElements();
-            headElements.add(new CssImport("/click/extras-control.css"));
-            headElements.add(new JsImport("/click/control.js"));
-            headElements.add(new JsImport("/click/prototype/prototype.js"));
-            headElements.add(new JsImport("/click/prototype/effects.js"));
-            headElements.add(new JsImport("/click/prototype/controls.js"));
+
+            String versionIndicator = ClickUtils.getResourceVersionIndicator(context);
+
+            headElements.add(new CssImport("/click/extras-control.css",
+                versionIndicator));
+            headElements.add(new JsImport("/click/control.js", versionIndicator));
+            headElements.add(new JsImport("/click/prototype/prototype.js",
+                versionIndicator));
+            headElements.add(new JsImport("/click/prototype/effects.js",
+                versionIndicator));
+            headElements.add(new JsImport("/click/prototype/controls.js",
+                versionIndicator));
         }
 
         // Note the addLoadEvent script is recreated and checked if it

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/SubmitLink.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/SubmitLink.java?rev=775665&r1=775664&r2=775665&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/SubmitLink.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/SubmitLink.java
Sun May 17 14:51:23 2009
@@ -514,7 +514,11 @@
 
         if (headElements == null) {
             headElements = super.getHeadElements();
-            JsImport jsImport = new JsImport("/click/extras-control.js");
+
+            String versionIndicator = ClickUtils.getResourceVersionIndicator(getContext());
+
+            JsImport jsImport = new JsImport("/click/extras-control.js",
+                versionIndicator);
             headElements.add(jsImport);
         }
         return headElements;

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java?rev=775665&r1=775664&r2=775665&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java
Sun May 17 14:51:23 2009
@@ -269,14 +269,21 @@
 
         if (headElements == null) {
             headElements = super.getHeadElements();
-            headElements.add(new CssImport("/click/prototype/calendar/" + getStyle() + ".css"));
-            headElements.add(new JsImport("/click/prototype/prototype.js"));
-            headElements.add(new JsImport("/click/prototype/calendar/calendar_date_select.js"));
+
+            String versionIndicator = ClickUtils.getResourceVersionIndicator(getContext());
+
+            headElements.add(new CssImport("/click/prototype/calendar/" + getStyle()
+                + ".css", versionIndicator));
+            headElements.add(new JsImport("/click/prototype/prototype.js",
+                versionIndicator));
+            headElements.add(new JsImport("/click/prototype/calendar/calendar_date_select.js",
+                versionIndicator));
 
             // English is default language, only include language pack if other
             // than English
             if (!"en".equals(language)) {
-                JsImport jsImport = new JsImport("/click/prototype/calendar/" + getLocale().getLanguage()
+ ".js");
+                JsImport jsImport = new JsImport("/click/prototype/calendar/"
+                    + getLocale().getLanguage() + ".js", versionIndicator);
                 jsImport.setAttribute("charset", "UTF-8");
                 headElements.add(jsImport);
             }



Mime
View raw message