diff options
author | zhixin <wenzhixin2010@gmail.com> | 2015-11-25 14:18:07 +0800 |
---|---|---|
committer | zhixin <wenzhixin2010@gmail.com> | 2015-11-25 14:18:07 +0800 |
commit | 360f3eaf6f6a17449c008a4c80c55060ff792608 (patch) | |
tree | e91a53727a569e15e71d2c5ee169270d25706384 | |
parent | 9884bb9e72b9fba8b1d3f37eba506b21fa9adc8c (diff) | |
download | multiple-select-360f3eaf6f6a17449c008a4c80c55060ff792608.zip multiple-select-360f3eaf6f6a17449c008a4c80c55060ff792608.tar.gz multiple-select-360f3eaf6f6a17449c008a4c80c55060ff792608.tar.bz2 |
Fix #84: single select with Optgroups bug.
-rw-r--r-- | multiple-select.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/multiple-select.js b/multiple-select.js index 8f249a5..db46cac 100644 --- a/multiple-select.js +++ b/multiple-select.js @@ -185,7 +185,8 @@ $group.append([ '<li class="group">', sprintf('<label class="optgroup %s" data-group="%s">', disabled ? 'disabled' : '', group), - this.options.hideOptgroupCheckboxes ? '' : sprintf('<input type="checkbox" %s %s>', + this.options.hideOptgroupCheckboxes || this.options.single ? '' : + sprintf('<input type="checkbox" %s %s>', this.selectGroupName, disabled ? 'disabled="disabled"' : ''), label, '</label>', |