File tree 3 files changed +5
-30
lines changed
3 files changed +5
-30
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,7 @@ <h2><input type="text"></h2>
30
30
$ ( '#input-tags' ) . selectize ( {
31
31
persist : false ,
32
32
createOnBlur : true ,
33
- create : function ( input ) {
34
- return {
35
- value : input ,
36
- text : input
37
- }
38
- }
33
+ create : true
39
34
} ) ;
40
35
</ script >
41
36
</ div >
Original file line number Diff line number Diff line change @@ -35,12 +35,7 @@ <h2>Plugin: "remove_button"</h2>
35
35
$ ( '.input-tags' ) . selectize ( {
36
36
plugins : [ 'remove_button' ] ,
37
37
persist : false ,
38
- create : function ( input ) {
39
- return {
40
- value : input ,
41
- text : input
42
- }
43
- } ,
38
+ create : true ,
44
39
render : {
45
40
item : function ( data , escape ) {
46
41
return '<div>"' + escape ( data . text ) + '"</div>' ;
@@ -63,12 +58,7 @@ <h2>Plugin: "restore_on_backspace"</h2>
63
58
$ ( '#input-tags6' ) . selectize ( {
64
59
plugins : [ 'restore_on_backspace' ] ,
65
60
persist : false ,
66
- create : function ( input ) {
67
- return {
68
- value : input ,
69
- text : input
70
- }
71
- }
61
+ create : true
72
62
} ) ;
73
63
</ script >
74
64
</ div >
@@ -87,12 +77,7 @@ <h2>Plugin: "drag_drop"</h2>
87
77
$ ( '.input-sortable' ) . selectize ( {
88
78
plugins : [ 'drag_drop' ] ,
89
79
persist : false ,
90
- create : function ( input ) {
91
- return {
92
- value : input ,
93
- text : input
94
- }
95
- }
80
+ create : true
96
81
} ) ;
97
82
</ script >
98
83
</ div >
Original file line number Diff line number Diff line change @@ -29,12 +29,7 @@ <h2>Right-to-left Support (RTL)</h2>
29
29
< script >
30
30
$ ( '#input-tags' ) . selectize ( {
31
31
persist : false ,
32
- create : function ( input ) {
33
- return {
34
- value : input ,
35
- text : input
36
- }
37
- }
32
+ create : true
38
33
} ) ;
39
34
</ script >
40
35
</ div >
You can’t perform that action at this time.
0 commit comments