From: lpsolit%gmail.com <> Date: Thu, 3 Sep 2009 19:17:32 +0000 (+0000) Subject: Bug 512616: "collapse/expand comment" removes css-class 'bz_comment_text' - Patch... X-Git-Tag: bugzilla-3.4.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29d17b0d1a731406c28990023a8a3acd2295b90f;p=thirdparty%2Fbugzilla.git Bug 512616: "collapse/expand comment" removes css-class 'bz_comment_text' - Patch by nayuta r=pyrzak a=LpSolit --- diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 576b3f850b..177c6f985c 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