We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df22c4c + 1192e42 commit af90b49Copy full SHA for af90b49
src/jquery.multiselect.js
@@ -134,6 +134,15 @@
134
var html = "";
135
var id = el.attr('id') || multiselectID++; // unique ID for the label & option tags
136
137
+ // update header link container visibility if needed
138
+ if (this.options.header) {
139
+ if(!this.options.multiple) {
140
+ this.headerLinkContainer.find('.ui-multiselect-all, .ui-multiselect-none').hide();
141
+ } else {
142
+ this.headerLinkContainer.find('.ui-multiselect-all, .ui-multiselect-none').show();
143
+ }
144
145
+
146
// build items
147
el.find('option').each(function(i) {
148
var $this = $(this);
0 commit comments