rename tagSeparator to separator. #191
This commit is contained in:
parent
5aae33d789
commit
c17336d1ac
@ -535,7 +535,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Custom tags separator.
|
//Custom tags separator.
|
||||||
opts.tagSeparator = opts.tagSeparator || ",";
|
opts.separator = opts.separator || ",";
|
||||||
|
|
||||||
if (select) {
|
if (select) {
|
||||||
// these options are not allowed when attached to a select because they are picked up off the element itself
|
// these options are not allowed when attached to a select because they are picked up off the element itself
|
||||||
@ -666,7 +666,7 @@
|
|||||||
opts.createSearchChoice = function (term) { return {id: term, text: term}; };
|
opts.createSearchChoice = function (term) { return {id: term, text: term}; };
|
||||||
opts.initSelection = function (element, callback) {
|
opts.initSelection = function (element, callback) {
|
||||||
var data = [];
|
var data = [];
|
||||||
$(splitVal(element.val(), opts.tagSeparator)).each(function () {
|
$(splitVal(element.val(), opts.separator)).each(function () {
|
||||||
data.push({id: this, text: this});
|
data.push({id: this, text: this});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1830,7 +1830,7 @@
|
|||||||
return val === null ? [] : val;
|
return val === null ? [] : val;
|
||||||
} else {
|
} else {
|
||||||
val = this.opts.element.val();
|
val = this.opts.element.val();
|
||||||
return splitVal(val, this.opts.tagSeparator);
|
return splitVal(val, this.opts.separator);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user