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

[ljcom] r10832: LJSUP-9404: Anchors

Committer: esavintcev
LJSUP-9404: Anchors
U   trunk/bin/upgrading/s2layers/opal/layout.s2
Modified: trunk/bin/upgrading/s2layers/opal/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/opal/layout.s2	2011-08-10 05:57:33 UTC (rev 10831)
+++ trunk/bin/upgrading/s2layers/opal/layout.s2	2011-08-10 06:25:56 UTC (rev 10832)
@@ -1056,7 +1056,7 @@
                 if ($p.showspam) {
                     print safe """<span>&nbsp;&nbsp; """ + get_plural_phrase($.spam_counter, "text_read_spam_comments") + """ &nbsp;&nbsp;</span>""";
                 } else {
-                    print safe """<a href=\"$.read_spam_url\">&nbsp;&nbsp; """ + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """ &nbsp;&nbsp;</a>""";
+                    print safe """<a href=\"$.read_spam_url#$*text_comments_id\">&nbsp;&nbsp; """ + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """ &nbsp;&nbsp;</a>""";
                 }
             }
         }
@@ -1069,9 +1069,9 @@
         print safe "$*text_max_comments";
     } else {
         if ($p.view == "entry") {
-                $p->print_reply_link({"target" => "topcomment", "linktext" => "$*text_post_comment", "class" => "reply_link"});
+                $p->print_reply_link({"target" => "topcomment", "linktext" => "$*text_post_comment", "class" => "reply_link", "reply_url" => $.post_url+"#$*text_addcomment_id"});
         } else {
-        print safe "<a href=\"$.post_url\">&nbsp; "+($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment)+" &nbsp;</a>";
+        print safe "<a href=\"$.post_url#$*text_addcomment_id\">&nbsp; "+($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment)+" &nbsp;</a>";
        }
     }
 }
@@ -1080,7 +1080,7 @@
 
 function CommentInfo::print_readlink {
     var Page p = get_page();
-    print safe "<a href=\"$.read_url\"> &nbsp; "+
+    print safe "<a href=\"$.read_url#$*text_comments_id\"> &nbsp; "+
         get_plural_phrase($.count, $p.view == "friends" ?
                           "text_read_comments_friends" : "text_read_comments")+
     " &nbsp; </a>";
@@ -1110,7 +1110,7 @@
 
     if ($.entry.comments.count > 0) {
     """
-                                        <div class="messageholder"><div class="systemmessage"><div class="notablemessage "><b>Comments</b></div></div></div>
+                                        <div class="messageholder" id="$*text_comments_id"><div class="systemmessage"><div class="notablemessage "><b>Comments</b></div></div></div>
     """;
     }
 
@@ -1341,7 +1341,7 @@
 
         } else {
             var string url_of = $this->url_of($i);
-            "<a href='$url_of'><b>[$i]</b></a>";
+            "<a href='$url_of#$*text_comments_id'><b>[$i]</b></a>";
         }
     }
     """</div></div></div>""";
@@ -1422,7 +1422,7 @@
     }
     print_ebox($.entry);
 
-                                        """<div class="messageholder"><div class="systemmessage">
+                                        """<div class="messageholder" id="$*text_addcomment_id"><div class="systemmessage">
     """;
     $.form->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