Ticket #4240 (closed bug: fixed)

Opened 18 months ago

Last modified 15 months ago

Datepicker: destroy, disable, and enable methods affect sibling datepickers

Reported by: ihumanable Owned by: rdworth
Priority: critical Milestone: 1.7.2
Component: ui.datepicker Version: 1.7.1
Keywords: Cc:

Description

When $(...).datepicker('destroy'); is issued all image buttons (buttons defined during initialization with a buttonImage and buttonImageOnly: true) for all datepickers are removed.

An example is attached, clicking the init startdate and init enddate will place two images on the screen in the correct position and wired properly. Clicking either of the remove buttons, removes both of the images instead of just the one associated with the datepicker being destroyed.

Attachments

datepicker.html Download (0.9 KB) - added by ihumanable 18 months ago.
Datepicker HTML Test Case
cal.gif Download (127 bytes) - added by ihumanable 18 months ago.
Sample image used by test case

Change History

Changed 18 months ago by ihumanable

Datepicker HTML Test Case

Changed 18 months ago by ihumanable

Sample image used by test case

Changed 18 months ago by joern.zaefferer

  • priority changed from minor to major
  • summary changed from Datepicker Destroy Bug to Datepicker destroy affects other datepickers
  • milestone changed from TBD to 1.7

Changed 18 months ago by rdworth

  • milestone changed from 1.7 to 1.8

Changed 18 months ago by rdworth

  • owner set to rdworth
  • status changed from new to assigned

Changed 18 months ago by rdworth

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r2303

Changed 18 months ago by rdworth

  • summary changed from Datepicker destroy affects other datepickers to Datepicker: destroy, disable, and enable methods affect sibling datepickers

This also affects 'enable' and 'disable' methods. For all three (destroy, enable, disable) it only affects sibling datepickers. So as a work-around, you can put each datepicker input or div in a wrapper element.

Changed 18 months ago by rdworth

  • priority changed from major to critical

Changed 18 months ago by rdworth

  • milestone changed from 1.8 to 1.7.1

merged to 1.7.1 in r2327

Changed 18 months ago by rdworth

  • status changed from closed to reopened
  • version changed from 1.6rc6 to 1.7.1
  • resolution fixed deleted
  • milestone changed from 1.7.1 to 1.8

appendText is also affected

Changed 18 months ago by rdworth

  • status changed from reopened to closed
  • resolution set to fixed

fixed in r2350

Changed 15 months ago by rdworth

  • milestone changed from 1.8 to 1.7.2
Note: See TracTickets for help on using tickets.