diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-07-03 13:57:48 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-07-03 13:57:48 +0200 |
commit | 5a897b3f69d0fdadd39a0df49f93c01a1bfd8385 (patch) | |
tree | 2522ef027e663369bc34ac22d1eebdf804fb7c3d | |
parent | dea51607988690162a098079f46d0a48d62adb13 (diff) |
Fix blinking selection when moving cursor on autocomplete list text
-rw-r--r-- | program/js/app.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js index 2b9c3f0d7..a3060a8c3 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4546,10 +4546,6 @@ function rcube_webmail() this.ksearch_pane = $('<div>').attr('id', 'rcmKSearchpane').attr('role', 'listbox') .css({ position:'absolute', 'z-index':30000 }).append(ul).appendTo(document.body); this.ksearch_pane.__ul = ul[0]; - - // register (delegate) event handlers - ul.on('mouseover', 'li', function(e){ ref.ksearch_select(e.target); }) - .on('mouseup', 'li', function(e){ ref.ksearch_click(e.target); }) } ul = this.ksearch_pane.__ul; @@ -4580,6 +4576,8 @@ function rcube_webmail() .html(this.quote_html(text.replace(new RegExp('('+RegExp.escape(value)+')', 'ig'), '##$1%%')).replace(/##([^%]+)%%/g, '<b>$1</b>')) .addClass(type || '') .appendTo(ul) + .mouseover(function() { ref.ksearch_select(this); }) + .mouseup(function() { ref.ksearch_click(this); }) .get(0)._rcm_id = id; maxlen -= 1; } |