diff options
Diffstat (limited to 'js/comments.js')
-rw-r--r-- | js/comments.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/js/comments.js b/js/comments.js index 43e6fe96e..7841688aa 100644 --- a/js/comments.js +++ b/js/comments.js @@ -54,13 +54,13 @@ function toggle_all_comments(action) { } function collapse_comment(link, comment, comment_id) { - link.innerHTML = "[+]"; + link.innerHTML = "<i class=\"fa fa-expand\" aria-hidden=\"true\"></i>"; YAHOO.util.Dom.addClass(comment, 'collapsed'); YAHOO.util.Dom.addClass('comment_tag_' + comment_id, 'collapsed'); } function expand_comment(link, comment, comment_id) { - link.innerHTML = "[−]"; + link.innerHTML = "<i class=\"fa fa-compress\" aria-hidden=\"true\"></i>"; YAHOO.util.Dom.addClass('cr' + comment_id, 'collapsed'); YAHOO.util.Dom.removeClass('c' + comment_id, 'bz_default_collapsed'); YAHOO.util.Dom.removeClass(comment, 'collapsed'); @@ -116,13 +116,12 @@ function wrapReplyText(text) { /* This way, we are sure that browsers which do not support JS * won't display this link */ - function addCollapseLink(count, collapsed, title) { - document.write(' <a href="#" class="bz_collapse_comment"' + + document.write(' <a href="#" class="bz_collapse_comment btn btn-default btn-xs"' + 'style="background:transparent;color:#505050;border:none;"' + ' id="comment_link_' + count + '" onclick="toggle_comment_display(this, ' + count + - '); return false;" title="' + title + '">[' + - (collapsed ? '+' : '−') + ']<\/a> '); + '); return false;" title="' + title + '">' + + (collapsed ? '<i class="fa fa-expand" aria-hidden="true"></i>' : '<i class="fa fa-compress" aria-hidden="true"></i>') + '<\/a> '); } function goto_add_comments( anchor ){ |