Committer: esavintcev
LJSUP-9404: AnchorsU trunk/bin/upgrading/s2layers/notepad/layout.s2
Modified: trunk/bin/upgrading/s2layers/notepad/layout.s2 =================================================================== --- trunk/bin/upgrading/s2layers/notepad/layout.s2 2011-08-10 06:00:49 UTC (rev 19676) +++ trunk/bin/upgrading/s2layers/notepad/layout.s2 2011-08-10 06:03:05 UTC (rev 19677) @@ -597,9 +597,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>"; } } } @@ -625,7 +625,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>"""; } } if (($.show_postlink and $.show_readlink) or ($.show_postlink and $p.view == "entry" and $.spam_counter > 0)) { @@ -762,7 +762,7 @@ if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) { $this->print_multiform_start(); - print "<h2>Comments:</h2>"; + print "<h2 id='$*text_comments_id'>Comments:</h2>"; if ($.comment_pages.total_subitems > 0) { $.comment_pages->print(); $this->print_comments($.comments); @@ -897,7 +897,7 @@ """<p align="center"><img src="$*imguri/hr.gif" width="345" height="23" alt='' /></p>"""; } - print "<h2>Reply</h2>"; + print "<h2 id='$*text_addcomment_id'>$*text_post_comment</h2>"; $.form->print(); }