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

[ljcom] r10835: LJSUP-9404: Anchors

Committer: esavintcev
LJSUP-9404: Anchors
U   trunk/bin/upgrading/s2layers/tranquilityii/layout.s2
Modified: trunk/bin/upgrading/s2layers/tranquilityii/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/tranquilityii/layout.s2	2011-08-10 08:22:32 UTC (rev 10834)
+++ trunk/bin/upgrading/s2layers/tranquilityii/layout.s2	2011-08-10 08:27:21 UTC (rev 10835)
@@ -951,7 +951,7 @@
             "</div>";
         }
         if ( $.entry.comments.enabled ) {
-            print "<h2>Comments {$.entry.comments.count}</h2>";
+            print "<h2 id='$*text_comments_id'>Comments {$.entry.comments.count}</h2>";
             print "<div id=\"comments\">";
                 if ( $.comment_pages.total_subitems > 0 ) {
                     if ( $this.multiform_on ) {
@@ -1200,7 +1200,7 @@
             if ($p.showspam) {
                 """ | """ + get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments") + """</span>""";
             } else {
-                """ | <a href=\"$e.comments.read_spam_url\">""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """</a></span>""";
+                """ | <a href=\"$e.comments.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """</a></span>""";
             }
         }
         if ( $p.view != "entry" and $p.view != "reply" ) {
@@ -1286,7 +1286,7 @@
         print safe "$*text_max_comments";
     } else {
             var string target = "topcomment";
-                $p->print_reply_link({"target" => $target, "class" => "comments", "title" => "$linktext", "linktext" => $linktext, "reply_url" => $.post_url});
+                $p->print_reply_link({"target" => $target, "class" => "comments", "title" => "$linktext", "linktext" => $linktext, "reply_url" => $.post_url+"#$*text_addcomment_id"});
             $p->print_reply_container({"target" => $target});
     }
 }
@@ -1505,7 +1505,7 @@
             "</div>";
         }
 
-        print "<div class=\"entry-form\">\n";
+        print "<div class=\"entry-form\" id='$*text_addcomment_id'>\n";
             print "<h2>Reply</h2>\n";
             $.form->print();
         print "</div>";

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