Commit 22225674 authored by David Stutz's avatar David Stutz

Merge pull request #64 from programcsharp/master

Fix single selection issue.
parents e9d6e143 e488aab0
......@@ -208,11 +208,12 @@
$checkboxesNotThis.filter(function () { return $(this).is(':checked') != checked; }).trigger('click');
}
if (checked) {
$option.attr('selected', 'selected');
$option.prop('selected', true);
if (!this.options.multiple)
{
if (this.options.multiple) {
$option.attr('selected', 'selected');
}
else {
if (this.options.selectedClass) {
$($checkboxesNotThis).parents('li').removeClass(this.options.selectedClass);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment