[jboss-cvs] jboss-seam/ui/src/main/resources/org/jboss/seam/ui/resource/date ...

Shane Bryzak sbryzak at redhat.com
Tue Jul 3 01:41:30 EDT 2007


  User: sbryzak2
  Date: 07/07/03 01:41:30

  Modified:    ui/src/main/resources/org/jboss/seam/ui/resource/date 
                        calendar.js
  Log:
  compensate for poor regex support in IE
  
  Revision  Changes    Path
  1.2       +2 -1      jboss-seam/ui/src/main/resources/org/jboss/seam/ui/resource/date/calendar.js
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: calendar.js
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/ui/src/main/resources/org/jboss/seam/ui/resource/date/calendar.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- calendar.js	19 Jun 2007 21:57:49 -0000	1.1
  +++ calendar.js	3 Jul 2007 05:41:30 -0000	1.2
  @@ -455,7 +455,8 @@
       var divs = document.getElementsByTagName("div");
       for (var i = 0; i < divs.length; i++)
       {
  -      if (divs[i] != popupDiv && divs[i].style && !/\D/(divs[i].style.zIndex))
  +      if (divs[i] != popupDiv && divs[i].style && 
  +          (typeof(divs[i].style.zIndex) == "number" || !isNaN(parseInt(divs[i].style.zIndex))))
         {
           var divZIndex = (divs[i].style.zIndex * 1);        
           if (divZIndex >= zIndex) zIndex = divZIndex + 1;
  
  
  



More information about the jboss-cvs-commits mailing list