vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21716: LJSUP-11456: Add link Collapse to Video ...

Committer: vad
LJSUP-11456: Add link Collapse to Video block on cyr home page
U   trunk/cgi-bin/LJ/Widget.pm
Modified: trunk/cgi-bin/LJ/Widget.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget.pm	2012-04-13 10:42:27 UTC (rev 21715)
+++ trunk/cgi-bin/LJ/Widget.pm	2012-04-13 12:21:41 UTC (rev 21716)
@@ -151,11 +151,9 @@
                 my $clpsd = LJ::Request->cookie('clpsd');
                 return 0 unless $clpsd;
                 
-                my ($block_id) = $widget_ele_id =~ /(\d+)$/;
-                $block_id = 1; # temporary hack for r91
                 my $widget_content_id_re = $widget_content_id ? "-$widget_content_id" : "";
-                ## cookie: clpsd=block_id-content_id:block_id-content_id:...
-                return 1 if $clpsd =~ /(^|:)$block_id$widget_content_id_re(:|$)/; ## collapsed
+                ## cookie: clpsd=css_subclass-content_id:css_subclass-content_id:...
+                return 1 if $clpsd =~ /(^|:)$css_subclass$widget_content_id_re(:|$)/; ## collapsed
                 return 0;
             };
 

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