Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Comments are collapsed by default.

  • Loading branch information...
commit bfe6a7997be64693e18f20c2e195eb4cb022bb46 1 parent 8e74571
@mikemintz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 deme_django/cms/templatetags/item_tags.py
View
4 deme_django/cms/templatetags/item_tags.py
@@ -762,7 +762,7 @@ def add_comment_to_div(comment_info, parents):
result.append(u'<div style="position: relative;">')
result.append(u'<div style="position: absolute; top: 10px; left: 0; width: 20px; border-top: 2px dotted #bbb;"></div>')
if comment_info['subcomments']:
- result.append(u'<div style="position: absolute; top: 1px; left: -10px; border: 2px solid #bbb; background: #fff; width: 15px; height: 15px; text-align: center; vertical-align: middle; font-size: 12px; font-weight: bold; cursor: pointer;" onclick="$(\'#comment_children%s\').toggle(); if ($(this).text() == \'+\') { $(this).text(\'-\') } else { $(this).text(\'+\') }">-</div>' % comment.pk)
+ result.append(u'<div style="position: absolute; top: 1px; left: -10px; border: 2px solid #bbb; background: #fff; width: 15px; height: 15px; text-align: center; vertical-align: middle; font-size: 12px; font-weight: bold; cursor: pointer;" onclick="$(\'#comment_children%s\').toggle(); if ($(this).text() == \'+\') { $(this).text(\'-\') } else { $(this).text(\'+\') }">+</div>' % comment.pk)
result.append(u'</div>')
result.append(u'<div class="comment_header" id="right_pane_comment_%d">' % comment.pk)
result.append(u'<div style="position: relative;"><div style="position: absolute; top: 0; left: 0;">')
@@ -830,7 +830,7 @@ def add_comment_to_div(comment_info, parents):
result.append(u'<div style="clear: both;"></div>')
result.append(u'</div>')
result.append(u'</div>')
- result.append(u'<div id="comment_children%s">' % comment.pk)
+ result.append(u'<div id="comment_children%s" style="display: none;">' % comment.pk)
for subcomment in comment_info['subcomments']:
add_comment_to_div(subcomment, parents + (comment_info,))
result.append(u'</div>')
Please sign in to comment.
Something went wrong with that request. Please try again.