|
@@ -10246,7 +10246,9 @@ define('select2/selection/single',[
|
|
};
|
|
};
|
|
|
|
|
|
SingleSelection.prototype.display = function (data) {
|
|
SingleSelection.prototype.display = function (data) {
|
|
- return data.text;
|
|
|
|
|
|
+ var template = this.options.get('templateSelection');
|
|
|
|
+
|
|
|
|
+ return template(data);
|
|
};
|
|
};
|
|
|
|
|
|
SingleSelection.prototype.selectionContainer = function () {
|
|
SingleSelection.prototype.selectionContainer = function () {
|
|
@@ -10323,7 +10325,9 @@ define('select2/selection/multiple',[
|
|
};
|
|
};
|
|
|
|
|
|
MultipleSelection.prototype.display = function (data) {
|
|
MultipleSelection.prototype.display = function (data) {
|
|
- return data.text;
|
|
|
|
|
|
+ var template = this.options.get('templateSelection');
|
|
|
|
+
|
|
|
|
+ return template(data);
|
|
};
|
|
};
|
|
|
|
|
|
MultipleSelection.prototype.selectionContainer = function () {
|
|
MultipleSelection.prototype.selectionContainer = function () {
|
|
@@ -11160,6 +11164,9 @@ define('select2/defaults',[
|
|
language: ['select2/i18n/en'],
|
|
language: ['select2/i18n/en'],
|
|
templateResult: function (result) {
|
|
templateResult: function (result) {
|
|
return result.text;
|
|
return result.text;
|
|
|
|
+ },
|
|
|
|
+ templateSelection: function (selection) {
|
|
|
|
+ return selection.text;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
};
|
|
};
|