1
0
mirror of synced 2024-11-22 04:56:08 +03:00

automatically initialize selection in tagging mode. closes #19

This commit is contained in:
Igor Vaynberg 2012-04-10 07:31:59 -07:00
parent b9c79344cd
commit 19810405ce

View File

@ -437,6 +437,14 @@
} else if ("tags" in opts) {
opts.query = tags(opts.tags);
opts.createSearchChoice = function (term) { return {id: term, text: term};}
opts.initSelection = function (element) {
var data = [];
$(element.val().split(",")).each(function () {
data.push({id: this, text: this});
});
return data;
}
}
}
}