Skip to content

Commit 1b17adb

Browse files
author
Eric Hynds
committed
Merge pull request #386 from davidworkman9/patch-1
Update src/jquery.multiselect.filter.js
2 parents f7819a7 + 4361203 commit 1b17adb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery.multiselect.filter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
var opts = this.options;
3030

3131
// get the multiselect instance
32-
var instance = (this.instance = $(this.element).data('multiselect'));
32+
var instance = (this.instance = $(this.element).data('echMultiselect'));
3333

3434
// store header; add filter class so the close/check all/uncheck all links can be positioned correctly
3535
var header = (this.header = instance.menu.find('.ui-multiselect-header').addClass('ui-multiselect-hasfilter'));
@@ -59,6 +59,7 @@
5959
// only the currently filtered elements are checked
6060
instance._toggleChecked = function(flag, group) {
6161
var $inputs = (group && group.length) ? group : this.labels.find('input');
62+
var _self = this;
6263

6364
// do not include hidden elems if the menu isn't open.
6465
var selector = instance._isOpen ? ':disabled, :hidden' : ':disabled';

0 commit comments

Comments
 (0)