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