comments
This commit is contained in:
7
src/inputs/select2/select2.js
vendored
7
src/inputs/select2/select2.js
vendored
@ -42,7 +42,7 @@ $(function(){
|
|||||||
//detect whether it is multi-valued
|
//detect whether it is multi-valued
|
||||||
this.isMultiple = options.select2.tags || options.select2.multiple;
|
this.isMultiple = options.select2.tags || options.select2.multiple;
|
||||||
|
|
||||||
//if not `tags` mode, we need define init set data from source
|
//if not `tags` mode, we need define initSelection to set data from source
|
||||||
if(!options.select2.tags) {
|
if(!options.select2.tags) {
|
||||||
if(options.source) {
|
if(options.source) {
|
||||||
mixin.data = options.source;
|
mixin.data = options.source;
|
||||||
@ -79,9 +79,8 @@ $(function(){
|
|||||||
this.$input.on('change', function() {
|
this.$input.on('change', function() {
|
||||||
$(this).closest('form').parent().triggerHandler('resize');
|
$(this).closest('form').parent().triggerHandler('resize');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
},
|
|
||||||
|
|
||||||
value2html: function(value, element) {
|
value2html: function(value, element) {
|
||||||
var text = '', data;
|
var text = '', data;
|
||||||
|
Reference in New Issue
Block a user