-
Bug
-
Resolution: Fixed
-
Minor
-
2.3.2
-
None
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE
-
wip-
MDL-36075_MASTER -
When viewing any page with a form with a date selector element in IE7 (I know it's not supported now - but some end users still have it!) you see a JavaScript error relating to dateselector and the date selector JavaScript UI (popup calendar) does not work.
JS error:
M.form.dateselector is null or not an object
Sometimes this error affects other JavaScript on the page and will stop other form elements such as the text editor initialising.
On investigation I can see the error occurs because there is a trailing comma on line 223 lib/form/yui/dateselector/dateselector.js that was added for MDL-31622.
IE7 does not like having a trailing comma in objects and doesn't run the script in the file - removing it stops the error and makes the date selector elements in the form work as expected.