Browse files

allow to change the attribute to use for displaying the text label

  • Loading branch information...
1 parent 8f9bc3d commit 2af33790578bad2a2722742c65ce23d2f7f562f9 @eeng committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/select2.js
View
2 app/assets/javascripts/select2.js
@@ -2644,7 +2644,7 @@ the specific language governing permissions and limitations under the Apache Lic
dropdownCssClass: "",
formatResult: function(result, container, query, escapeMarkup) {
var markup=[];
- markMatch(result.text, query.term, markup, escapeMarkup);
+ markMatch(this.resultText(result), query.term, markup, escapeMarkup);
return markup.join("");
},
formatSelection: function (data, container) {

0 comments on commit 2af3379

Please sign in to comment.