You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2005/12/30 12:43:57 UTC

svn commit: r360074 - /incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago.js

Author: weber
Date: Fri Dec 30 03:43:53 2005
New Revision: 360074

URL: http://svn.apache.org/viewcvs?rev=360074&view=rev
Log:
fix script error in IE

Modified:
    incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago.js

Modified: incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago.js
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago.js?rev=360074&r1=360073&r2=360074&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago.js (original)
+++ incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago.js Fri Dec 30 03:43:53 2005
@@ -122,8 +122,11 @@
         if (element != null) {
           types += "type=" + element.type + ' id=' + element.id + '\n';
           if (!element.disabled && checkFocusType(element.type)){
-            element.focus();
-            break foriLoop;
+            try { // focus() on not visible elements breaks IE
+              element.focus();
+              break foriLoop;
+            } catch(ex) { }
+
           }
         }
       }