From d306fcf82c4b301d33b4bbd7098a6f3aed6cc3cc Mon Sep 17 00:00:00 2001
From: Kevin Brown
Date: Fri, 7 Nov 2014 20:20:37 -0500
Subject: [PATCH] Added default selection for AJAX
---
docs/examples.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docs/examples.html b/docs/examples.html
index 67520484..6758eb77 100644
--- a/docs/examples.html
+++ b/docs/examples.html
@@ -170,7 +170,9 @@ $(".js-example-data-array-selected").select2({
-
+
@@ -543,7 +545,7 @@ $.fn.select2.amd.require(
return markup;
},
templateSelection: function (repo) {
- return repo.full_name;
+ return repo.full_name || repo.text;
}
});