diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-04-10 13:54:39 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-04-10 13:54:39 +0000 |
| commit | 10b3fc144e42871961f70d5ccb4fe32ad7abb6dd (patch) | |
| tree | 139c861a35d1823ef0ed44c0f4af1e94f717b729 | |
| parent | 2deb1e495f2ba89851614414edbf9b87207ede15 (diff) | |
- added rows highlighting in onmousemove on ksearch list
git-svn-id: https://svn.roundcube.net/trunk@1281 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index a24745645..05a4385ab 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -2118,6 +2118,22 @@ function rcube_webmail() }; + // handler for mouse events on address-fields + this.ksearch_onmousemove = function(li) + { + var last = document.getElementById('rcmksearchSelected'); + if (last) + { + last.removeAttribute('id'); + this.set_classname(last, 'selected', false); + } + + li.setAttribute('id', 'rcmksearchSelected'); + this.set_classname(li, 'selected', true); + this.ksearch_selected = li._rcm_id; + }; + + this.insert_recipient = function(id) { if (!this.env.contacts[id] || !this.ksearch_input) @@ -2208,7 +2224,8 @@ function rcube_webmail() li = document.createElement('LI'); li.innerHTML = a_results[i].replace(/</, '<').replace(/>/, '>'); li.onmousedown = function(e){ ref.insert_recipient(this._rcm_id); ref.ksearch_pane.show(0); return rcube_event.cancel(e); }; - li.style.cursor = 'pointer'; + li.onmouseover = function(e){ ref.ksearch_onmousemove(this); }; + li.style.cursor = 'pointer'; li._rcm_id = a_result_ids[i]; ul.appendChild(li); } |
