[PATCH] Javascript error in IE7 when selecting a date
-----------------------------------------------------

                 Key: WICKET-1007
                 URL: https://issues.apache.org/jira/browse/WICKET-1007
             Project: Wicket
          Issue Type: Bug
          Components: wicket-datetime
    Affects Versions: 1.3.0-beta3
         Environment: IE7
            Reporter: David


When selecting a date in IE7 I get a javascript error on line 227 in 
wicket-date.js. In this line there is the following check:

if (typeof(field.onchange) != 'undefined' ) field.onchange();

in IE7 this gives a warning due to field.onchange being null (which is user 
defined instead of undefined). Changing the check as follows solves this 
problem for me:

if (typeof(field.onchange) != 'undefined' && field.onchange != null) 
field.onchange();



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to