diff options
| author | Géry Debongnie <ged@odoo.com> | 2014-06-27 13:57:33 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2014-06-27 13:57:33 +0200 |
| commit | e556fd735e66dc8d769be0bb3b7ea23777c24116 (patch) | |
| tree | 3503ba6d8e9b5d279eab6c69a652fc0b35013c0e /addons/web/static/src | |
| parent | 18da121ae256d028586b4342d8ce7f3f01a3cade (diff) | |
[FIX] ignore separators when moving in autocomplet
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index eabc6a9c104..92396bc181b 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -2493,10 +2493,10 @@ instance.web.search.AutoComplete = instance.web.Widget.extend({ move: function (direction) { var $next; if (direction === 'down') { - $next = this.$('li.oe-selection-focus').next(); + $next = this.$('li.oe-selection-focus').nextAll(':not(.oe-separator)').first(); if (!$next.length) $next = this.$('li:first-child'); } else { - $next = this.$('li.oe-selection-focus').prev(); + $next = this.$('li.oe-selection-focus').prevAll(':not(.oe-separator)').first(); if (!$next.length) $next = this.$('li:last-child'); } this.focus_element($next); |
