File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
lib/web/jquery/editableMultiselect/js Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ define([
116
116
e . preventDefault ( ) ;
117
117
o . toggleAddButton && buttonAdd . hide ( ) ;
118
118
container . show ( ) ;
119
- input . focus ( ) ;
119
+ input . trigger ( 'focus' ) ;
120
120
if ( input . parents ( o . mselectListClass ) . length ) {
121
121
list . scrollTop ( list . height ( ) ) ;
122
122
}
@@ -162,7 +162,7 @@ define([
162
162
. end ( ) ;
163
163
164
164
list . children ( '.' + o . mselectListItemClass + '' ) . length
165
- ? list . children ( '.' + o . mselectListItemClass + ': last' ) . after ( item )
165
+ ? list . children ( '.' + o . mselectListItemClas ) . last ( ) . after ( item )
166
166
: list . prepend ( item ) ;
167
167
168
168
select . append ( '<option value="' + v + '" selected="selected">' + v + '</option>' ) ;
@@ -181,12 +181,13 @@ define([
181
181
list [ list . children ( ) . length ? 'show' : 'hide' ] ( ) ;
182
182
183
183
if ( ch . length >= size && ! list . hasClass ( o . mselectItemsWrapperOverflowClass ) ) {
184
- list . height ( list . children ( '.' + o . mselectListItemClass + ':first' )
184
+ list . height ( list . children ( '.' + o . mselectListItemClass )
185
+ . first ( )
185
186
. outerHeight ( true ) * size )
186
187
. addClass ( o . mselectItemsWrapperOverflowClass ) ;
187
188
}
188
189
} ;
189
190
reset ( ) ;
190
191
} ) . end ( ) ;
191
192
} ;
192
- } ) ;
193
+ } ) ;
You can’t perform that action at this time.
0 commit comments