chandrajavin / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Cannot de-select date in multiple select #234

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
With selectMultiple set to true, open up the calendar and click the dates to 
select them. Click on the selected dates to de-select them.

What is the expected output? What do you see instead?
Previously selected dates should be de-selected. Instead they stay selected and 
cannot be de-selected.

Please provide a URL to a page displaying the problem.
http://www.topangacreekbicycles.com/bicycle-rentals-demos.php

What version of the datepicker are you using? On what operating system? And 
Which Browser?
$Id: jquery.datePicker.js 100 2010-06-23 10:45:28Z kelvin.luck $
jquery 1.4.2
Windows Vista Home 64 SP2
Firefox 3.5.11

Please provide any additional information below.

Original issue reported on code.google.com by wuho...@gmail.com on 17 Aug 2010 at 7:27

GoogleCodeExporter commented 8 years ago
Also faced this issue, is this bug fixed ?

Original comment by Anton.Vo...@gmail.com on 2 Nov 2011 at 1:04

GoogleCodeExporter commented 8 years ago
I was able to achieve the desired results by removing the else statement from 
the .bind('change', function() around line 274.

).bind(
    'change',
    function()
    {
        if (this.value == '') {
            controller.clearSelected();
        // Comented out to make deselect work (BE)
        // } else {
        //  var d = Date.fromString(this.value);
        //  if (d) {
        //      controller.setSelected(d, true, true);
        //  }
        }
    }
);

Original comment by bu...@butchewing.com on 13 Dec 2013 at 6:45