From 18f5eb175a9bc5cdb76ce611e07fead92804ed35 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 3 Sep 2009 19:15:27 +0000 Subject: Bug 512616: "collapse/expand comment" removes css-class 'bz_comment_text' - Patch by nayuta r=pyrzak a=LpSolit --- template/en/default/bug/comments.html.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'template/en') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 576b3f850..177c6f985 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -71,13 +71,13 @@ function collapse_comment(link, comment) { link.innerHTML = "[+]"; link.title = "Expand the comment."; - comment.className = "collapsed"; + YAHOO.util.Dom.addClass(comment, 'collapsed'); } function expand_comment(link, comment) { link.innerHTML = "[-]"; link.title = "Collapse the comment"; - comment.className = ""; + YAHOO.util.Dom.removeClass(comment, 'collapsed'); } /* This way, we are sure that browsers which do not support JS -- cgit v1.2.1