This repository was archived by the owner on Jun 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11/*!
2- * Select2-to-Tree CSS 1.1.0
2+ * Select2-to-Tree CSS 1.1.1
33 * https://github.com/clivezhg/select2-to-tree
44 */
55 .s2-to-tree * {
Original file line number Diff line number Diff line change 11/*!
2- * Select2-to-Tree 1.1.0
2+ * Select2-to-Tree 1.1.1
33 * https://github.com/clivezhg/select2-to-tree
44 */
55( function ( $ ) {
1010 buildSelect ( opts . treeData , this ) ;
1111 }
1212
13- opts . tr_old = opts . templateResult ;
13+ opts . _templateResult = opts . templateResult ;
1414 opts . templateResult = function ( data , container ) {
1515 var label = data . text ;
16- if ( typeof opts . tr_old === "function" ) {
17- label = opts . tr_old ( data , container ) ;
16+ if ( typeof opts . _templateResult === "function" ) {
17+ label = opts . _templateResult ( data , container ) ;
1818 }
1919 var $iteme = $ ( "<span class='item-label'></span>" ) . append ( label ) ;
2020 if ( data . element ) {
4343 s2inst . on ( "select2:open" , function ( evt ) {
4444 var s2data = s2inst . data ( "select2" ) ;
4545 s2data . $dropdown . addClass ( "s2-to-tree" ) ;
46- s2data . $dropdown . find ( ".searching-result" ) . removeClass ( "searching-result" ) ;
46+ s2data . $dropdown . removeClass ( "searching-result" ) ;
4747 var $allsch = s2data . $dropdown . find ( ".select2-search__field" ) . add ( s2data . $container . find ( ".select2-search__field" ) ) ;
4848 $allsch . off ( "input" , inputHandler ) ;
4949 $allsch . on ( "input" , inputHandler ) ;
You can’t perform that action at this time.
0 commit comments