Search and Top Navigation
#2859 closed bug (worksforme)
Opened May 14, 2008 07:18AM UTC
Closed June 01, 2008 11:10PM UTC
Datepicker 3.4.3 'change' commits changes to all datepickers
Reported by: | mnichols | Owned by: | grabanski |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | ui.datepicker | Version: | 1.5b4 |
Keywords: | datepicker 3.4.3 change | Cc: | |
Blocked by: | Blocking: |
Description
When trying to use the 'change' function, the new settings are applied to all datepickers on page.
For example, with the code below, one would expect that only the input 'myrange' would be a ranged datepicker, but in fact it causes all pickers to become range-aware. If this is by design it should be made clearer.
To test:
<input type="text" class="date" id="plainoledate"/>
<script type="text/javascript">
$(document).ready(function(){
$('.date').datepicker();
});
</script>
<input type="text" class="date" id="myrange"/>
<script type="text/javascript">
$(document).ready(function(){
$('#myrange').datepicker('change',{ rangeSelect: true});
});
</script>
Attachments (0)
Change History (4)
Changed May 24, 2008 03:39AM UTC by comment:1
milestone: | 1.2.4 |
---|
Changed May 24, 2008 03:44AM UTC by comment:2
component: | ui.core → ui.datepicker |
---|---|
owner: | paul |
version: | 1.2.3 → 1.5b4 |
Changed May 27, 2008 10:36PM UTC by comment:3
owner: | → grabanski |
---|---|
status: | new → assigned |
Changed June 01, 2008 11:10PM UTC by comment:4
resolution: | → worksforme |
---|---|
status: | assigned → closed |
I tested your sample code, as well as a few other settings, against latest SVN and couldn't reproduce this problem. If you continue to experience this problem after upgrading to latest SVN, feel free to re-open this ticket.
Milestone 1.2.4 deleted