Committer: esavintcev
LJSUP-9404: AnchorsU trunk/htdocs/talkpost.bml U trunk/htdocs/talkread.bml
Modified: trunk/htdocs/talkpost.bml =================================================================== --- trunk/htdocs/talkpost.bml 2011-08-10 08:56:19 UTC (rev 19687) +++ trunk/htdocs/talkpost.bml 2011-08-10 09:03:41 UTC (rev 19688) @@ -410,7 +410,7 @@ $readlink_text = BML::ml("talk.commentsread.nocomments"); } - $ret .= "<p align='center' class='lesstop'><b>(<a href=\"$readurl#comments\">$readlink_text</a>)</b></p>"; + $ret .= "<p align='center' class='lesstop' id='add_comment'><b>(<a href=\"$readurl#comments\">$readlink_text</a>)</b></p>"; my $h1title = $editid ? $ML{'.editresponse'} : $ML{'.postresponse'}; $ret .= BML::fill_template("H1", { DATA => $h1title }); Modified: trunk/htdocs/talkread.bml =================================================================== --- trunk/htdocs/talkread.bml 2011-08-10 08:56:19 UTC (rev 19687) +++ trunk/htdocs/talkread.bml 2011-08-10 09:03:41 UTC (rev 19688) @@ -592,7 +592,7 @@ if ($showspam) { $readspamlink = "(" . BML::ml('talk.hidespam', { spam_counter => $spam_counter }) . ")"; } else { - $readspamlink = "(<a href='$showspamurl'>" . BML::ml('talk.showspam', { spam_counter => $spam_counter }) . "</a>)"; + $readspamlink = "(<a href='$showspamurl#comments'>" . BML::ml('talk.showspam', { spam_counter => $spam_counter }) . "</a>)"; } } $readspamlink .= ' - ' if $readspamlink && $allow_commenting; @@ -620,12 +620,12 @@ # See if we want to force them to change their password my $bp = LJ::bad_password_redirect({ 'returl' => 1 }); if ($bp) { - $ret .= "(<a href='$bp'>" . BML::ml('talk.replytothis') . " </a>)"; + $ret .= "(<a href='$bp#add_comment'>" . BML::ml('talk.replytothis') . " </a>)"; } else { - $ret .= "(" . LJ::make_qr_link('top', '', BML::ml('talk.commentpost'), $posturl) . "</a>)"; + $ret .= "(" . LJ::make_qr_link('top', '', BML::ml('talk.commentpost'), $posturl."#add_comment") . "</a>)"; } } else { - $ret .= "(<a href='$posturl'>" . BML::ml('talk.commentpost') . "</a>)"; + $ret .= "(<a href='$posturl#add_comment'>" . BML::ml('talk.commentpost') . "</a>)"; } } @@ -687,12 +687,12 @@ # See if we want to force them to change their password my $bp = LJ::bad_password_redirect({ 'returl' => 1 }); if ($bp) { - $ret .= "(<a href='$bp'>" . BML::ml('talk.replytothis') . " </a>)"; + $ret .= "(<a href='$bp#add_comment'>" . BML::ml('talk.replytothis') . " </a>)"; } else { - $ret .= "(" . LJ::make_qr_link('bottom', '', BML::ml('talk.commentpost'), $posturl) . "</a>)"; + $ret .= "(" . LJ::make_qr_link('bottom', '', BML::ml('talk.commentpost'), $posturl."#add_comment") . "</a>)"; } } else { - $ret .= "(<a href='$posturl'>" . BML::ml('talk.commentpost') . "</a>)"; + $ret .= "(<a href='$posturl#add_comment'>" . BML::ml('talk.commentpost') . "</a>)"; } } $ret .= $rated_count;