summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/comments.js6
-rw-r--r--template/en/default/bug/comments.html.tmpl2
2 files changed, 3 insertions, 5 deletions
diff --git a/js/comments.js b/js/comments.js
index f46499b62..e7163a0fd 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 ){
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index 208ea092a..170c69349 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -122,7 +122,7 @@
<span class="bz_comment_actions">
<script type="text/javascript"><!--
addReplyLink([% count %], [% comment.id %]);
- addCollapseLink([% count %]); // -->
+ addCollapseLink([% count %], 'Toggle comment display'); // -->
</script>
</span>
[% END %]