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

[livejournal] r19683: LJSUP-9404: Anchors

Committer: esavintcev
LJSUP-9404: Anchors
U   trunk/bin/upgrading/s2layers/sturdygesture/layout.s2
Modified: trunk/bin/upgrading/s2layers/sturdygesture/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sturdygesture/layout.s2	2011-08-10 07:08:12 UTC (rev 19682)
+++ trunk/bin/upgrading/s2layers/sturdygesture/layout.s2	2011-08-10 08:07:46 UTC (rev 19683)
@@ -723,9 +723,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>";
        }
     }
 }
@@ -744,7 +744,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> | """;
                 }
             }
             $this->print_readlink();
@@ -777,6 +777,7 @@
         $.entry->print_ebox();
         "</div>";
     }
+    """<span id="$*text_comments_id"></span>""";
     if ($this.multiform_on) {
         $this->print_multiform_start();
     }
@@ -957,7 +958,7 @@
         "</div>";
     }
 
-    """<div class="box" style="margin-left: 25px;">\n""";
+    """<div class="box" style="margin-left: 25px;" id="$*text_addcomment_id">\n""";
     $.form->print();
     "</div>\n";
 

Tags: livejournal, 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