File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -704,8 +704,8 @@ <h4><a href="./demo.html">view more advanced demos and customization →</a></h4
704
704
< script >
705
705
$ ( function ( ) {
706
706
$ ( '.customOptions' ) . selectric ( {
707
- optionsItemBuilder : function ( itemData , element , index ) {
708
- return element . val ( ) . length ? '<span class="ico ico-' + element . val ( ) + '"></span>' + itemData . text : itemData . text ;
707
+ optionsItemBuilder : function ( itemData ) {
708
+ return itemData . value . length ? '<span class="ico ico-' + itemData . value + '"></span>' + itemData . text : itemData . text ;
709
709
}
710
710
} ) ;
711
711
Original file line number Diff line number Diff line change 241
241
/*------------------------------------*/
242
242
243
243
$ ( '.custom-options' ) . selectric ( {
244
- optionsItemBuilder : function ( itemData , element , index ) {
245
- return element . val ( ) . length ?
246
- '<span class="ico ico-' + element . val ( ) + '"></span>' + itemData . text :
244
+ optionsItemBuilder : function ( itemData ) {
245
+ return itemData . value . length ?
246
+ '<span class="ico ico-' + itemData . value + '"></span>' + itemData . text :
247
247
itemData . text ;
248
248
}
249
249
} ) ;
You can’t perform that action at this time.
0 commit comments