diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-05-17 18:41:24 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-05-17 18:41:24 +0000 |
| commit | cbb5ed45a4dd04d772ea922b42e3fdc12b744a29 (patch) | |
| tree | a10db0de06a108ef2cc02223b23803ef474952ac /roundcubemail/program/js | |
| parent | b2bddda4d675071672acf8b6e1db03f1a35ff019 (diff) | |
Add link to message subjects (#1484257); don't make selected list items bold; remove duplicate function
git-svn-id: https://svn.roundcube.net/trunk@567 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/list.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index 719585893..23a9c349c 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/program/js/list.js @@ -584,7 +584,7 @@ drag_mouse_move: function(e) // get subjects of selectedd messages var names = ''; - var c, subject, obj; + var c, node, subject, obj; for(var n=0; n<this.selection.length; n++) { if (n>12) // only show 12 lines @@ -599,10 +599,11 @@ drag_mouse_move: function(e) subject = ''; for(c=0; c<obj.childNodes.length; c++) - if (!subject && obj.childNodes[c].nodeName=='TD' && obj.childNodes[c].firstChild && obj.childNodes[c].firstChild.nodeType==3) + if (obj.childNodes[c].nodeName=='TD' && (node = obj.childNodes[c].firstChild) && (node.nodeType==3 || node.nodeName=='A')) { - subject = obj.childNodes[c].firstChild.data; + subject = node.nodeType==3 ? node.data : node.innerHTML; names += (subject.length > 50 ? subject.substring(0, 50)+'...' : subject) + '<br />'; + break; } } } |
