Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r10816: LJSUP-9404: Anchors

Committer: esavintcev
LJSUP-9404: Anchors
U   trunk/bin/upgrading/s2layers/boxer/layout.s2
Modified: trunk/bin/upgrading/s2layers/boxer/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/boxer/layout.s2	2011-08-09 04:18:48 UTC (rev 10815)
+++ trunk/bin/upgrading/s2layers/boxer/layout.s2	2011-08-09 05:57:24 UTC (rev 10816)
@@ -932,7 +932,7 @@
                     $e.comments->print();
                                     if ($e.comments.enabled) {
                                                 """<span class="icon">""";
-                                                $p->print_reply_link({"target" => "topcomments", "reply_url" => $e.comments.post_url,
+                                                $p->print_reply_link({"target" => "topcomments", "reply_url" => $e.comments.post_url+"#$*text_addcomment_id",
                                                                       "img_url" => $*leave_comment, "img_width" => "20",
                                                                       "img_height" => "21", "img_align" => "middle",
                                                                       "alt" => "Reply", "title" => "Reply"});
@@ -945,7 +945,7 @@
                         if ($p.showspam) {
                             $comments_showspam = """ <span class="icon"><img src="$*SITEROOT/img/btn_unspam.gif" align="middle" border="0" alt="$*text_hidespam" title=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments") + """\" /></a></span> """;
                         } else {
-                            $comments_showspam = """ <span class="icon"><a href="$e.comments.read_spam_url"><img src="$*SITEROOT/img/btn_spam.gif" align="middle" border="0" alt="$*text_showspam" title=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """\" /></a></span> """;
+                            $comments_showspam = """ <span class="icon"><a href="$e.comments.read_spam_url#$*text_comments_id"><img src="$*SITEROOT/img/btn_spam.gif" align="middle" border="0" alt="$*text_showspam" title=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """\" /></a></span> """;
                         }
                     }
                     if ($p.view == "entry") {
@@ -1105,7 +1105,7 @@
                     """
                     <br />
 
-                    <span class="icon"><a href="$.entry.comments.read_url" class="comments"><img src="$*comment" alt="Comment" title="Comment" width="17" height="21" border="0" align="middle" /></a></span>
+                    <span class="icon"><a href="$.entry.comments.read_url#$*text_comments_id" class="comments"><img src="$*comment" alt="Comment" title="Comment" width="17" height="21" border="0" align="middle" /></a></span>
                     """;
 
                     var string{} link_image = {
@@ -1134,7 +1134,7 @@
         </tr>
     </table>""";
     print_ebox($e);
-    """<table cellspacing="0" cellpadding="0" border="0" width="$*page_width" class="new">
+    """<table cellspacing="0" cellpadding="0" border="0" width="$*page_width" class="new" id="$*text_addcomment_id">
         <tr>
             <td class="entry" align="left">
     """;
@@ -1190,6 +1190,7 @@
     print_ebox($.entry);
 
     if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) {
+        """<span id="$*text_comments_id"></span>""";
         $this->print_multiform_start();
             $this->print_comments($.comments);
 
@@ -1727,7 +1728,7 @@
     }
 
 
-    """<span class="icon"><a href=\"$.read_url\" class="comments">$count<img src="$*comment" alt="Comment" title="Comment" width="17" height="21" border="0" align="middle" /></a></span>""";
+    """<span class="icon"><a href=\"$.read_url#$*text_comments_id\" class="comments">$count<img src="$*comment" alt="Comment" title="Comment" width="17" height="21" border="0" align="middle" /></a></span>""";
 }
 
 function CommentInfo::print()

Tags: ljcom, s2, savintsev_egor
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments