Author: ivaynberg
Date: Fri Oct 21 16:09:50 2011
New Revision: 1187435
URL: http://svn.apache.org/viewvc?rev=1187435&view=rev
Log:
WICKET-4159
Modified:
wicket/branches/wicket-1.4.x/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java
Modified:
wicket/branches/wicket-1.4.x/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java
URL:
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java?rev=1187435&r1=1187434&r2=1187435&view=diff
==============================================================================
---
wicket/branches/wicket-1.4.x/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java
(original)
+++
wicket/branches/wicket-1.4.x/wicket-datetime/src/main/java/org/apache/wicket/extensions/yui/calendar/DatePicker.java
Fri Oct 21 16:09:50 2011
@@ -332,10 +332,10 @@ public class DatePicker extends Abstract
final String escapedComponentMarkupId =
getEscapedComponentMarkupId();
final String javascript = "var e = Wicket.$('" +
escapedComponentMarkupId + "Dp" +
"'); if (e != null &&
typeof(e.parentNode) != 'undefined' && " +
- "typeof(e.parentNode.parentNode !=
'undefined')) " +
+ "typeof(e.parentNode.parentNode !=
'undefined')) {" +
"e.parentNode.parentNode.removeChild(e.parentNode);" + "YAHOO.wicket." +
escapedComponentMarkupId +
"DpJs.destroy(); delete YAHOO.wicket." +
- escapedComponentMarkupId + "DpJs;";
+ escapedComponentMarkupId + "DpJs;}";
response.renderJavascript(javascript, null);
}