1
0
mirror of synced 2024-11-26 14:56:07 +03:00

Merge pull request #1485 from timisbusy/master

Trimming in opts.createSearchChoice
This commit is contained in:
Igor Vaynberg 2013-07-03 15:27:58 -07:00
commit 37073f623a

View File

@ -955,7 +955,7 @@ the specific language governing permissions and limitations under the Apache Lic
} else if ("tags" in opts) {
opts.query = tags(opts.tags);
if (opts.createSearchChoice === undefined) {
opts.createSearchChoice = function (term) { return {id: term, text: term}; };
opts.createSearchChoice = function (term) { return {id: $.trim(term), text: $.trim(term)}; };
}
if (opts.initSelection === undefined) {
opts.initSelection = function (element, callback) {