diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-23 12:49:30 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-23 12:49:30 +0000 |
| commit | c7f7066c03f6516c98a1d6448adad5734a118b4e (patch) | |
| tree | dfa29db29d33cd1cc5979f16f05d1a3fa52d9af7 | |
| parent | d065ff49de9e91f1666e89eda9c316a10b8cd307 (diff) | |
Add onmouseup handler to hide autocompletion box when clicking outside
git-svn-id: https://svn.roundcube.net/trunk@2082 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 82687da3a..5d0129231 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -202,6 +202,8 @@ function rcube_webmail() } if (this.env.drafts_mailbox) this.enable_command('savedraft', true); + + document.onmouseup = function(e){ return p.doc_mouse_up(e); }; } if (this.env.messagecount) @@ -2503,7 +2505,7 @@ function rcube_webmail() li = document.createElement('LI'); li.innerHTML = a_results[i].replace(/</, '<').replace(/>/, '>').replace(new RegExp('('+this.ksearch_value+')', 'ig'), '<b>$1</b>'); li.onmouseover = function(){ ref.ksearch_select(this); }; - li.onclick = function(){ ref.ksearch_click(this) }; + li.onmouseup = function(){ ref.ksearch_click(this) }; li._rcm_id = a_result_ids[i]; ul.appendChild(li); } |
