#3180 closed bug (fixed)
datepicker automatic id assign
Reported by: | 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().
Change History (3)
comment:1 Changed 14 years ago by
Milestone: | → 1.6 |
---|---|
Status: | new → assigned |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 14 years ago by
Milestone: | 1.6 → 1.6rc1 |
---|
Note: See
TracTickets for help on using
tickets.
Fixed. Start with current time in milliseconds and then increment for each ID.