RajeshChaudhary345 / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

Modified version to work with jquery 1.16 and jquery ui 1.8.13 #187

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have made some modifications on the code to make it work with jquery 1.6.1 
and jqueryui 1.8.13.

The changes aren't really that much, I just used the notes here - 
http://blog.jquery.com/2011/05/12/jquery-1-6-1-released/ on the proper use of 
prop() on 1.6.1 and tested it and it works

I created a simple test page (modified version of the page that I posted here 
before) - 
http://leejay22.slackermommy.com/ddcl/dropdownchecklist-modified-v2.html and 
tested it on 
FF 4.01, Opera 11.11, IE9, IE8, IE7, Chrome 11.0.696.71 and Safari 5.0.5 and 
everything seems to be working properly.

All the changes that I made on the code can be traced by looking for 
"//123123". I have retained the original value as comments to help you check 
the changes.

Hope this helps.

Original issue reported on code.google.com by leeja...@gmail.com on 26 May 2011 at 9:31

Attachments:

GoogleCodeExporter commented 8 years ago
It might be my personal configuration (although that did not change in a long 
time) but how come it only checks the first checkbox of all the options that 
have "selected" in them?

I have a simple:

$('#genres').dropdownchecklist({width: 200, firstItemChecksAll: true, 
emptyText: "Select a genre"});

and in the following example it only checks the first selected option 
"Animatie":

<select multiple name="genres[]" id="genres">
   <option value="0">Alle genres</option>
   <option value="1">Actie</option>
   <option value="10" selected>Animatie</option>
   <option value="4" selected>Avontuur</option>
   <option value="12" selected>Documentaire</option>
   <option value="8" selected>Drama</option>
   <option value="15">Familie</option>
   <option value="5">Fantasy</option>
   <option value="13">Horror</option>
   <option value="2" selected>Komedie</option>
   <option value="3" selected>Science-Fiction</option>
   <option value="6" selected>Thriller</option>
   <option value="18" selected>Western</option>
</select>

Original comment by bmet...@gmail.com on 28 May 2011 at 9:26

GoogleCodeExporter commented 8 years ago
Actually nevermind, this seems to be an issue in Chrome 12 (beta). If I had 
looked further I would have stumbled upon this earlier: 
http://code.google.com/p/dropdown-check-list/issues/detail?id=176

There is also a fix in there.

Original comment by bmet...@gmail.com on 28 May 2011 at 9:37

GoogleCodeExporter commented 8 years ago
WFM - thanks!

Original comment by yoa...@gmail.com on 29 May 2011 at 8:48

GoogleCodeExporter commented 8 years ago

Original comment by womohun...@ittrium.com on 13 Jun 2011 at 3:36