File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2727
2828 _create : function ( ) {
2929 var opts = this . options ;
30+ var elem = $ ( this . element ) ;
3031
3132 // get the multiselect instance
32- var instance = ( this . instance = $ ( this . element ) . data ( 'echMultiselect' ) ) ;
33+ var instance = ( this . instance = ( elem . data ( 'echMultiselect' ) || elem . data ( "multiselect" ) ) ) ;
3334
3435 // store header; add filter class so the close/check all/uncheck all links can be positioned correctly
3536 var header = ( this . header = instance . menu . find ( '.ui-multiselect-header' ) . addClass ( 'ui-multiselect-hasfilter' ) ) ;
6566 var selector = instance . _isOpen ? ':disabled, :hidden' : ':disabled' ;
6667
6768 $inputs = $inputs
68- . not ( selector )
69- . each ( this . _toggleState ( 'checked' , flag ) ) ;
69+ . not ( selector )
70+ . each ( this . _toggleState ( 'checked' , flag ) ) ;
7071
7172 // update text
7273 this . update ( ) ;
You can’t perform that action at this time.
0 commit comments