From 69af9da2c8f5800e07005ea7a8d5ed8b34089af0 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 3 May 2012 10:07:23 +0200 Subject: [PATCH] [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 --- addons/web/static/src/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index eb2ad5bc84d..6842571c5f7 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -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