summaryrefslogtreecommitdiffstats
path: root/multiple-select.js
diff options
context:
space:
mode:
Diffstat (limited to 'multiple-select.js')
-rw-r--r--multiple-select.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/multiple-select.js b/multiple-select.js
index 968fab7..459d864 100644
--- a/multiple-select.js
+++ b/multiple-select.js
@@ -380,7 +380,7 @@
if (this.options.addTitle) {
$span.prop('title', this.getSelects('text'));
}
-
+
// set selects to select
this.$el.val(this.getSelects()).trigger('change');
@@ -466,14 +466,14 @@
});
this.$selectAll.prop('checked', this.$selectItems.length ===
this.$selectItems.filter(':checked').length);
-
+
$.each(that.$selectGroups, function (i, val) {
var group = $(val).parent().attr('data-group'),
$children = that.$selectItems.filter('[data-group="' + group + '"]');
$(val).prop('checked', $children.length &&
$children.length === $children.filter(':checked').length);
- });
-
+ });
+
this.update();
},
@@ -559,6 +559,7 @@
allowedMethods = [
'getSelects', 'setSelects',
'enable', 'disable',
+ 'open','close',
'checkAll', 'uncheckAll',
'focus', 'blur',
'refresh', 'close'