summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jquery.multiple.select.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index 42fd20d..f8a1efe 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -153,8 +153,8 @@
html.push(
'<li class="group">',
'<label class="optgroup' + (disabled ? ' disabled' : '') + '" data-group="' + _group + '">',
- '<input type="checkbox" ' + this.selectGroupName +
- (disabled ? ' disabled="disabled"' : '') + ' /> ',
+ (this.options.hideOptgroupCheckboxes ? '' : '<input type="checkbox" ' + this.selectGroupName +
+ (disabled ? ' disabled="disabled"' : '') + ' /> '),
label,
'</label>',
'</li>');