﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31644	Add a change event to DateTimeShortcuts.js.	Alton Ray Carlson II	nobody	"For the current DateTimeShortcuts.js, when you click on a date in the calendar and the date is copied into the textbox, no event fires. I have added in a few lines of code that will fire a change event for the textbox (DateField) that the calendar is associated with. On line 410, add this:
{{{
                if (""createEvent"" in document) {
                    var evt = document.createEvent(""HTMLEvents"");
                    evt.initEvent(""change"", true, true);
                    DateTimeShortcuts.calendarInputs[num].dispatchEvent(evt);
                }
                else
                    DateTimeShortcuts.calendarInputs[num].fireEvent(""onchange"");
}}}
I have attached the file."	Cleanup/optimization	closed	contrib.admin	3.0	Normal	wontfix			Unreviewed	0	0	0	0	1	0
