Commit e488aab0 authored by Chris Hynes's avatar Chris Hynes

Fixed

parent 89ce91e7
...@@ -208,11 +208,12 @@ ...@@ -208,11 +208,12 @@
$checkboxesNotThis.filter(function () { return $(this).is(':checked') != checked; }).trigger('click'); $checkboxesNotThis.filter(function () { return $(this).is(':checked') != checked; }).trigger('click');
} }
if (checked) { if (checked) {
//$option.attr('selected', 'selected');
$option.prop('selected', true); $option.prop('selected', true);
if (!this.options.multiple) if (this.options.multiple) {
{ $option.attr('selected', 'selected');
}
else {
if (this.options.selectedClass) { if (this.options.selectedClass) {
$($checkboxesNotThis).parents('li').removeClass(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