Committer: esavintcev
LJSUP-9404: AnchorsU trunk/bin/upgrading/s2layers/magazine/layout.s2
Modified: trunk/bin/upgrading/s2layers/magazine/layout.s2 =================================================================== --- trunk/bin/upgrading/s2layers/magazine/layout.s2 2011-08-09 09:40:15 UTC (rev 19667) +++ trunk/bin/upgrading/s2layers/magazine/layout.s2 2011-08-09 09:57:46 UTC (rev 19668) @@ -656,9 +656,9 @@ print safe "$*text_max_comments"; } else { if ($p.view == "entry") { - $p->print_reply_link({"target" => "topcomment", "linktext" => $*text_post_comment}); + $p->print_reply_link({"target" => "topcomment", "linktext" => $*text_post_comment, "reply_url" => $.post_url+"#$*text_addcomment_id"}); } else { - print safe "<a href=\"$.post_url\">"+($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment)+"</a>"; + print safe "<a href=\"$.post_url#$*text_addcomment_id\">"+($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment)+"</a>"; } } } @@ -679,7 +679,7 @@ if ($p.showspam) { print safe get_plural_phrase($.spam_counter, "text_read_spam_comments"); } else { - print safe """<a href=\"$.read_spam_url\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a>"""; + print safe """<a href=\"$.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a>"""; } } } @@ -905,7 +905,7 @@ if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) { $this->print_multiform_start(); - print "<h2>Comments:</h2><div class='Comments'><div style='margin-left: 30px;'>"; + print "<h2 id=\"$*text_comments_id\">Comments:</h2><div class='Comments'><div style='margin-left: 30px;'>"; if ($.comment_pages.total_subitems > 0) { $.comment_pages->print(); $this->print_comments($.comments); @@ -1097,7 +1097,7 @@ $.entry->print_ebox(); "</div>"; } - print "<h2>Reply:</h2>"; + print "<h2 id='$*text_addcomment_id'>$*text_post_comment:</h2>"; $.form->print(); }