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

[livejournal] r19685: LJSUP-9404: Anchors

Committer: esavintcev
LJSUP-9404: Anchors
U   trunk/bin/upgrading/s2layers/variableflow/layout.s2
Modified: trunk/bin/upgrading/s2layers/variableflow/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/variableflow/layout.s2	2011-08-10 08:21:37 UTC (rev 19684)
+++ trunk/bin/upgrading/s2layers/variableflow/layout.s2	2011-08-10 08:42:23 UTC (rev 19685)
@@ -733,7 +733,7 @@
                 if ($p.showspam) {
                     """<li class="comments-hidespam">""" + get_plural_phrase($.spam_counter, "text_read_spam_comments") + """</li>""";
                 } else {
-                    """<li class="comments-showspam"><a href=\"$.read_spam_url\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a></li>""";
+                    """<li class="comments-showspam"><a href=\"$.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a></li>""";
                 }
             }
         }
@@ -822,7 +822,7 @@
         $.entry->print_ebox();
         "</div>";
     }
-    """<div id="commentform">""";
+    """<div id="$*text_addcomment_id">""";
     $.form->print();
     """</div>""";
 }
@@ -835,7 +835,7 @@
             print "<li class=\"current\">$i</li>";
         }
         else {
-            print "<li><a href=\""+$.comment_pages->url_of($i)+"\">$i</a></li>";
+            print "<li><a href=\""+$.comment_pages->url_of($i)+"#$*text_comments_id\">$i</a></li>";
         }
     }
     print "</ul>";
@@ -848,6 +848,7 @@
         $.entry->print_ebox();
         "</div>";
     }
+    """<span id="$*text_comments_id"></span>""";
     $this->lay_print_pager();
     $this->print_comments($.comments);
     $this->lay_print_pager();

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