1
0
mirror of synced 2025-03-10 22:56:12 +03:00

allow override of createSearchChoice in tags. fixes #567

This commit is contained in:
Igor Vaynberg 2012-11-15 09:56:05 -08:00
parent 2fa9f73e3b
commit 2eb28a60aa

View File

@ -797,7 +797,9 @@ the specific language governing permissions and limitations under the Apache Lic
opts.query = local(opts.data);
} else if ("tags" in opts) {
opts.query = tags(opts.tags);
if (opts.createSearchChoice === undefined) {
opts.createSearchChoice = function (term) { return {id: term, text: term}; };
}
opts.initSelection = function (element, callback) {
var data = [];
$(splitVal(element.val(), opts.separator)).each(function () {