Skip to main content

Search and Top Navigation

#5679 closed feature (fixed)

Opened June 01, 2010 04:16AM UTC

Closed November 19, 2012 02:20PM UTC

Last modified November 19, 2012 02:23PM UTC

Datepicker should reinitialize if dpDiv is removed

Reported by: pifantastic Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.datepicker Version: 1.8.1
Keywords: initialized haspatch Cc:
Blocked by: Blocking:
Description

The Datepicker is only initialized once, meaning, the widget container div is only added to the DOM once. However, if you delete that container, either directly or through something like $("body").html(""), no future datepickers will work.

Here is a workaround

http://github.com/pifantastic/jquery-ui/commit/f48de0ad33a7f847a8514c989531fef46a57dbd7

Attachments (0)
Change History (9)

Changed November 29, 2011 07:57AM UTC by salnikov comment:1

Changed December 01, 2011 03:49AM UTC by salnikov comment:2

Made an addition to prevent multiple event bind on initialize. New pull request sent https://github.com/jquery/jquery-ui/pull/543. New commit is here https://github.com/bardt/jquery-ui/commit/f20486d1231fce4a559bc70f0595a071e9efc59b

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:3

type: enhancementfeature

Changed October 11, 2012 09:04PM UTC by scottgonzalez comment:4

milestone: TBD1.11.0

Changed October 19, 2012 10:02PM UTC by mikesherov comment:5

keywords: initializedinitialized haspatch
status: newopen

Changed November 10, 2012 07:38PM UTC by mikesherov comment:6

Changed November 17, 2012 12:21PM UTC by salnikov comment:7

Changed November 19, 2012 02:20PM UTC by Roman Salnikov comment:8

resolution: → fixed
status: openclosed

Datepicker: reinitialize datepicker if mainDiv isn't on the page. Fixed #5679 - Datepicker should reinitialize if dpDiv is removed

Changeset: 7ffcaa2e3b673e7e4178293224d5a15f65cbbcf9

Changed November 19, 2012 02:23PM UTC by mikesherov comment:9

milestone: 1.11.01.10.0