[FIX] close autocomplete listing on input
authorXavier Morel <xmo@openerp.com>
Mon, 10 Feb 2014 12:34:16 +0000 (13:34 +0100)
committerXavier Morel <xmo@openerp.com>
Mon, 10 Feb 2014 12:34:16 +0000 (13:34 +0100)
commit0821af1af96c0ff59770a32c03b0bd5cdf960c39
treeeba1604e612d0ebd44cbdf380608749692f0a574
parent97e0c07430b291eeff824f39f11a9804fba43767
[FIX] close autocomplete listing on input

Closing previously occured on search request (so that a user wouldn't be able
to select "old" data on new search request), but ``search`` is only triggered
after the search delay. Worked when delay was 0, with it being moved to 250 a
user can get results matching the previous search instead of the current one.

Trigger a closing of the current results list on any ``input`` event, which is
when text is entered in any of the searchview's ``InputView``.

bzr revid: xmo@openerp.com-20140210123416-cfc0x24bfkiv4lse
addons/web/static/src/js/search.js