[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:
parent
23ef3f9b96
commit
69af9da2c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue