You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2011/05/25 22:59:26 UTC

svn commit: r1127683 - /myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js

Author: lu4242
Date: Wed May 25 20:59:26 2011
New Revision: 1127683

URL: http://svn.apache.org/viewvc?rev=1127683&view=rev
Log:
TOMAHAWK-1592 t:inputCalendar do not work on IE9

Modified:
    myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js

Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js?rev=1127683&r1=1127682&r2=1127683&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js Wed May 25 20:59:26 2011
@@ -161,12 +161,11 @@ org_apache_myfaces_PopupCalendar.prototy
         if (iframe == null)
         {
             // the source attribute is to avoid a IE error message about non secure content on https connections
-            iframe = document.createElement(
-              "<iframe"
-              + " src='javascript:false;'"
-              + " id='" + overDiv.id + "_IFRAME'"
-              + " style='visibility:hidden; position: absolute; top:0px;left:0px;'"
-              + "/>");
+            iframe = document.createElement("iframe");
+            iframe.setAttribute("id", overDiv.id + "_IFRAME'");
+            iframe.setAttribute("src", "javascript:false;")
+            Element.setStyle(iframe, "visibility:hidden; position: absolute; top:0px;left:0px;");
+            
             //we can append it lazily since we are late here anyway and everything is rendered
             document.body.appendChild(iframe);
         }