У меня в живом журнале при нажатии на Expand разворачивается комментарий. Но виден только лишь один он. А хочется, чтобы коммент разворачивался также, как и у других — непосредственно в ветке.
В коде у меня выглядит это так:
function print_comment2(Comment e, int zcounter) {
$zcounter--;
var int indent = ($e.depth - 1) * 25;
var string id = $e.dom_id ? " id=\"$e.dom_id\"" : "";
if (not $e.full) {
# Collapsed mode
"""<a name='$e.anchor'></a>
<div $id class="collapsed_box" style="padding-left: ${indent}px; position: relative; z-index: ${zcounter};">""";
var string subject = $e.subject != "" ? $e.subject : """<i class="no_subject">$*text_nosubject</i>""";
print safe """<a href="$e.permalink_url">$subject</a> <span class="separator">-</span> """;
var string poster = (defined $e.poster ? ""+$e.poster : """<i class="no_poster">$*text_poster_anonymous</i>""");
print safe """$poster """;
var Link expand_link = $e->get_link("expand_comments");
" (";
if ($e.thread_url != "" and defined $expand_link) {
" " + $e->expand_link({ "class" => "collapsed-comment-link" });
}
")";
"""</div>""";
if (not $e.frozen) {
$e->print_reply_container({"class" => "quickreply"});
}
if (size($e.replies) > 0) {
foreach var Comment c ($e.replies) {
$zcounter--;
print_comment2($c, $zcounter);
}
}
return;
}
На что это можно исправить?
