diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-05-01 17:37:15 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-05-01 17:37:15 +0200 |
commit | b9ce8358e9822243421a37548e3d1f0371b97455 (patch) | |
tree | 37e983d92587ee30f93c35109200567e499ec491 /js/comments.js | |
parent | 228c7bf9ea03a5faafe22f003e5d56da1b7b2162 (diff) | |
parent | 07c6bfa4cea83c8284b04add26729f552c93bafc (diff) | |
download | bugzilla-b9ce8358e9822243421a37548e3d1f0371b97455.tar.gz bugzilla-b9ce8358e9822243421a37548e3d1f0371b97455.tar.xz |
merged with bugzilla/4.2
Diffstat (limited to 'js/comments.js')
-rw-r--r-- | js/comments.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/comments.js b/js/comments.js index 28ef54397..e9a3e209f 100644 --- a/js/comments.js +++ b/js/comments.js @@ -67,13 +67,11 @@ function toggle_all_comments(action) { function collapse_comment(link, comment) { link.innerHTML = "[+]"; - link.title = "Expand the comment."; YAHOO.util.Dom.addClass(comment, 'collapsed'); } function expand_comment(link, comment) { link.innerHTML = "[-]"; - link.title = "Collapse the comment"; YAHOO.util.Dom.removeClass(comment, 'collapsed'); } @@ -127,11 +125,11 @@ function wrapReplyText(text) { /* This way, we are sure that browsers which do not support JS * won't display this link */ -function addCollapseLink(count) { +function addCollapseLink(count, title) { document.write(' <a href="#" class="bz_collapse_comment"' + ' id="comment_link_' + count + '" onclick="toggle_comment_display(this, ' + count + - '); return false;" title="Collapse the comment.">[-]<\/a> '); + '); return false;" title="' + title + '">[-]<\/a> '); } function goto_add_comments( anchor ){ |