You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2007/11/30 01:51:40 UTC

svn commit: r599665 - in /tapestry/tapestry5/trunk/tapestry-core/src: main/resources/org/apache/tapestry/tapestry.js test/app1/RegexpDemo.tml

Author: hlship
Date: Thu Nov 29 16:51:35 2007
New Revision: 599665

URL: http://svn.apache.org/viewvc?rev=599665&view=rev
Log:
TAPESTRY-1942: Client side validation should be triggered when the user moves out of a field

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js
    tapestry/tapestry5/trunk/tapestry-core/src/test/app1/RegexpDemo.tml

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js?rev=599665&r1=599664&r2=599665&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/tapestry.js Thu Nov 29 16:51:35 2007
@@ -363,7 +363,7 @@
             var fieldPos = this.field.positionedOffset();
 
             // These magic numbers are based on the height of the bevel image.
-            this.popup.setStyle({ top: fieldPos[1] - 34 + "px", left: fieldPos[0] + "px", width: "auto", height: "39px" });
+            this.popup.setStyle({ top: fieldPos[1] - 34 + "px", left: fieldPos[0] - 5 + "px", width: "auto", height: "39px" });
 
             this.popup.fadingIn = true;
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/app1/RegexpDemo.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/RegexpDemo.tml?rev=599665&r1=599664&r2=599665&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/app1/RegexpDemo.tml (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/app1/RegexpDemo.tml Thu Nov 29 16:51:35 2007
@@ -1,11 +1,13 @@
 <html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
 
-<t:beaneditform object="this"/>
+    <h1>Regexp Validation Demo</h1>
 
-<hr/>
+    <t:beaneditform object="this"/>
 
-  <t:if test="zipCode">
-    Zip code: [${zipCode}]
-  </t:if>
+    <hr/>
+
+    <t:if test="zipCode">
+        Zip code: [${zipCode}]
+    </t:if>
 
 </html>