Search and Top Navigation
#3180 closed bug (fixed)
Opened August 13, 2008 05:54PM UTC
Closed August 21, 2008 04:09PM UTC
Last modified November 19, 2008 04:29AM UTC
datepicker automatic id assign
Reported by: | szinya@mentha.hu | Owned by: | grabanski |
---|---|---|---|
Priority: | minor | Milestone: | 1.6rc1 |
Component: | ui.datepicker | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When attaching the date picker to a jQurey selection containing multiple items without id tag, the following code can assign the same id to all elements in the selection:
in _attachDatepicker function:
if (!target.id) target.id = 'dp' + new Date().getTime();
This happens when jQuery iterates through the items in the selection in the same millisecond. The result is a non functioning datepicker.
The solution would be to use a random number instead of Date().getTime().
Attachments (0)
Change History (3)
Changed August 16, 2008 08:18PM UTC by comment:1
milestone: | → 1.6 |
---|---|
status: | new → assigned |
Changed August 21, 2008 04:09PM UTC by comment:2
resolution: | → fixed |
---|---|
status: | assigned → closed |
Fixed. Start with current time in milliseconds and then increment for each ID.
Changed November 19, 2008 04:29AM UTC by comment:3
milestone: | 1.6 → 1.6rc1 |
---|