From 28efd1efcf9c79ebf57874f623be0364cb63464c Mon Sep 17 00:00:00 2001 From: Yoh Kenn Date: Mon, 31 Jul 2017 14:33:24 +0800 Subject: [PATCH] Update jquery.multi-select.js hide optgroup label when children length is 0 or disabled in selection --- js/jquery.multi-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index d71ca10..d2fe033 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -456,7 +456,7 @@ ms.find('option:not(":disabled")').prop('selected', true); this.$selectableUl.find('.ms-elem-selectable').filter(':not(.'+this.options.disabledClass+')').addClass('ms-selected').hide(); - this.$selectionUl.find('.ms-optgroup-label').show(); + //this.$selectionUl.find('.ms-optgroup-label').show(); this.$selectableUl.find('.ms-optgroup-label').hide(); this.$selectionUl.find('.ms-elem-selection').filter(':not(.'+this.options.disabledClass+')').addClass('ms-selected').show(); this.$selectionUl.focus();