click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r775569 - /incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java
Date Sat, 16 May 2009 23:51:29 GMT
Author: sabob
Date: Sat May 16 23:51:29 2009
New Revision: 775569

URL: http://svn.apache.org/viewvc?rev=775569&view=rev
Log:
rather use addLoadEvent than Prototype's dom:ready which doesn't seem to work with Ajax

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java?rev=775569&r1=775568&r2=775569&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/prototype/CalendarField.java
Sat May 16 23:51:29 2009
@@ -411,7 +411,7 @@
         // used in a fly-weight pattern such as FormTable.
         if (!headElements.contains(script)) {
             HtmlStringBuffer buffer = new HtmlStringBuffer(150);
-            buffer.append("document.observe('dom:loaded', function(){");
+            buffer.append("addLoadEvent( function(){");
             buffer.append("  Event.observe('").append(imgId).append(
                 "', 'click', function(){");
             buffer.append("  Date.first_day_of_week=").append(getFirstDayOfWeek() - 1);



Mime
View raw message