[IMP] change minLength condition to 1 for completion

0 allows opening a completion list with nothing, but that turns out not to be very useful and it interacts weirdly with tabbing between search inputs

bzr revid: xmo@openerp.com-20120503080723-i4u9vl91rhlfhmg8
This commit is contained in:
Xavier Morel 2012-05-03 10:07:23 +02:00
parent 23ef3f9b96
commit 69af9da2c8
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
select: this.proxy('select_completion'),
focus: function (e) { e.preventDefault(); },
html: true,
minLength: 0,
minLength: 1,
delay: 0
}).data('autocomplete')._renderItem = function (ul, item) {
// item of completion list