Author: hlship
Date: Mon Nov  3 11:00:30 2008
New Revision: 710129

URL: http://svn.apache.org/viewvc?rev=710129&view=rev
Log:
TAP5-25: Client-side validation is triggered onblur even when switching to a 
different form in the same page, or to a non-form element such as a link

Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=710129&r1=710128&r2=710129&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
 Mon Nov  3 11:00:30 2008
@@ -99,8 +99,6 @@
                 {
                     if (element != Tapestry.currentFocusField)
                     {
-                        Tapestry.debug("Focus changed to #{id}", element);
-
                         document.fire(Tapestry.FOCUS_CHANGE_EVENT, element);
 
                         Tapestry.currentFocusField = element;
@@ -993,8 +991,6 @@
 
     fadeIn : function()
     {
-        Tapestry.debug("fadeIn: " + this.field.id);
-
         if (! this.hasMessage) return;
 
         this.repositionBubble();
@@ -1008,10 +1004,7 @@
                 this.animation = null;
 
                 if (this.field != Tapestry.currentFocusField)
-                {
-                    Tapestry.debug("Field #{id} lost focus, fading bubble", 
this.field);
                     this.fadeOut();
-                }
             }.bind(this)
         });
     },
@@ -1025,8 +1018,6 @@
 
     fadeOut : function ()
     {
-        Tapestry.debug("fadeOut: " + this.field.id);
-
         if (this.animation) return;
 
         this.animation = new Effect.Fade(this.outerDiv, { queue : this.queue,
@@ -1148,10 +1139,8 @@
 
             if (Tapestry.currentFocusField == this.field &&
                 this.field.form == event.memo.form)
-            {
-                Tapestry.debug("Validating input for #{id} on focus change", 
this.field);
                 this.validateInput();
-            }
+
         }.bindAsEventListener(this));
     },
 


Reply via email to