summaryrefslogtreecommitdiffstats
path: root/js/jquery.multi-select.js
diff options
context:
space:
mode:
authortop-flight <baranski@email.uscupstate.edu>2011-12-05 18:44:25 -0500
committertop-flight <baranski@email.uscupstate.edu>2011-12-05 18:44:25 -0500
commiteb7afb6ae344009c077ddc26b6bb1e590bee3bd0 (patch)
treee559adde695ac9d2d813113a68db2956225f649e /js/jquery.multi-select.js
parentcef26b6504e1dddb23e510c5fbf53197784cd109 (diff)
downloadmulti-select-eb7afb6ae344009c077ddc26b6bb1e590bee3bd0.zip
multi-select-eb7afb6ae344009c077ddc26b6bb1e590bee3bd0.tar.gz
multi-select-eb7afb6ae344009c077ddc26b6bb1e590bee3bd0.tar.bz2
select all bug fixes - when the select all example loads make sure all optgroups are collapsed like the first optgroup example. When 'select all' option is pressed and optgroups are collapsed, make sure the label is removed from the 'selectable' list.
Diffstat (limited to 'js/jquery.multi-select.js')
-rw-r--r--js/jquery.multi-select.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js
index 1ac180b..1d464e1 100644
--- a/js/jquery.multi-select.js
+++ b/js/jquery.multi-select.js
@@ -150,6 +150,9 @@
if (ms.find("option[value='']")){
ms.find("option[value='']").removeAttr('selected');
}
+ if (method == "select_all" && parentOptgroup.children('.ms-elem-selectable').length > 0){
+ parentOptgroup.children('.ms-optgroup-label').hide();
+ }
if(method != 'init' || ms.data('settings').callbackOnInit){
selectedUl.trigger('change');
selectableUl.trigger('change');