Первый фоллен на хелле (wildkin) wrote in changelog,
Первый фоллен на хелле
wildkin
changelog

[livejournal] r18799: LJSUP-7813: New thread expander in S2, m...

Committer: dnikolaev
LJSUP-7813: New thread expander in S2, minimalism

U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2011-04-06 02:22:09 UTC (rev 18798)
+++ trunk/cgi-bin/LJ/S2.pm	2011-04-06 03:28:13 UTC (rev 18799)
@@ -3500,16 +3500,16 @@
 
     my $print_expand_link = sub {
         $S2::pout->(
-            " <span id='expand_$this->{talkid}'>" .
-                "(<a href='$this->{thread_url}' onClick=\"ExpanderEx.make(this,'$this->{thread_url}','$this->{talkid}',true);return false;\">$text_expand</a>)" . 
+            "<span id='expand_$this->{talkid}'>" .
+                " (<a href='$this->{thread_url}' onClick=\"ExpanderEx.make(this,'$this->{thread_url}','$this->{talkid}',true);return false;\">$text_expand</a>)" . 
             "</span>"
         );
     };
 
     my $print_collapse_link = sub {
         $S2::pout->(
-            " <span id='collapse_$this->{talkid}'>" .
-                "(<a href='$this->{thread_url}' onClick=\"ExpanderEx.collapse(this,'$this->{thread_url}','$this->{talkid}',true);return false;\">$text_collapse</a>)" . 
+            "<span id='collapse_$this->{talkid}'>" .
+                " (<a href='$this->{thread_url}' onClick=\"ExpanderEx.collapse(this,'$this->{thread_url}','$this->{talkid}',true);return false;\">$text_collapse</a>)" . 
             "</span>"
         );
     };
@@ -3522,12 +3522,13 @@
         return 0;
     };
 
-    if ($show_expand_link->()) {
+    if ($this->{_show_expand_collapse}) {
         $print_expand_link->();
-    }
-    elsif ($this->{_show_collapse_link}) {
         $print_collapse_link->();
     }
+    elsif ($show_expand_link->()) {
+        $print_expand_link->();
+    }
 }
 
 sub Page__print_trusted

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