myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r791600 - /myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Date Mon, 06 Jul 2009 20:11:14 GMT
Author: bommel
Date: Mon Jul  6 20:11:14 2009
New Revision: 791600

URL: http://svn.apache.org/viewvc?rev=791600&view=rev
Log:
(TOBAGO-769) Support for focus and errorFocus for tc:select* controls

Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=791600&r1=791599&r2=791600&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Mon Jul  6 20:11:14 2009
@@ -1204,7 +1204,7 @@
       elementId = this.focusId;
     }
     var focusElement = this.element(elementId);
-    if ((focusElement == "undefined" || !focusElement) && elementId) {
+    if (!focusElement && elementId !== undefined) {
       // search for input elements in tc:select*  controls
       var elements = document.getElementsByName(elementId);
       if (elements.length > 0) {



Mime
View raw message