]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 512616: "collapse/expand comment" removes css-class 'bz_comment_text' - Patch...
authorlpsolit%gmail.com <>
Thu, 3 Sep 2009 19:17:32 +0000 (19:17 +0000)
committerlpsolit%gmail.com <>
Thu, 3 Sep 2009 19:17:32 +0000 (19:17 +0000)
template/en/default/bug/comments.html.tmpl

index 576b3f850b0783a19e64faf7b500c6de9c1eb553..177c6f985c66e6b5d6431413550a06aa359571ae 100644 (file)
   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