Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.4.18
-
None
-
All browsers
Description
Javascript error in datepicker when it's loaded.
Current check is:
var e = Wicket.$('id815Dp'); if (e != null && typeof(e.parentNode) != 'undefined' && typeof(e.parentNode.parentNode != 'undefined')){
e.parentNode.parentNode.removeChild(e.parentNode);
YAHOO.wicket.id815DpJs.destroy();
delete YAHOO.wicket.id815DpJs;
should be like:
var e = Wicket.$('id815Dp'); if (e != null && typeof(e.parentNode) != 'undefined' && typeof(e.parentNode.parentNode != 'undefined'))
{ e.parentNode.parentNode.removeChild(e.parentNode); YAHOO.wicket.id815DpJs.destroy(); delete YAHOO.wicket.id815DpJs; }I miss the brackets in the current, now you get an javascript exception on line 'YAHOO.wicket.id815DpJs.destroy(); ', because YAHOO.wicket.id815DpJs does not exist.
Attachments
Attachments
Issue Links
- is related to
-
WICKET-3400 DatePicker renders errorenous JavaScript in AjaxRequest
- Resolved