[ljcom] r12705: LJSUP-13507: Load more rating's items on...
Committer: amyshkin
LJSUP-13507: Load more rating's items on home pageU trunk/cgi-bin/LJ/Widget/HomepageRU.pm
Modified: trunk/cgi-bin/LJ/Widget/HomepageRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/HomepageRU.pm 2012-09-28 11:53:40 UTC (rev 12704)
+++ trunk/cgi-bin/LJ/Widget/HomepageRU.pm 2012-09-28 12:37:57 UTC (rev 12705)
@@ -130,11 +130,11 @@
my $rating_top_journals_sort = LJ::Request->cookie('rating_top_journals_sort');
$rating_top_journals_sort = 'visitors' unless defined $rating_top_journals_sort;
- my $rating_show_custom = ! LJ::Request->cookie('rating_full');
+ my $rating_show_custom = LJ::Request->cookie('rating_show_custom');
$rating_show_custom = 1 unless defined $rating_show_custom;
$rating_show_custom = ( $rating_show_custom ? 1 : 0 );
- ## 'rating_full' and 'rating_top_journals_sort' cookie specify ratings sort order and usually are set or changed by JavaScript,
+ ## 'rating_show_custom' and 'rating_top_journals_sort' cookie specify ratings sort order and usually are set or changed by JavaScript,
## in case JS is disabled in browser or it does not support JS, set them by Set-Cookie response header.
my $set_sort_cookie = 0;
my $set_rating_cookie = 0;
@@ -208,7 +208,7 @@
'output' => $output,
);
- LJ::Request->set_cookie('rating_full' => !$rating_show_custom, 'expires' => time + 60*60*24*180) if $set_rating_cookie;
+ LJ::Request->set_cookie('rating_show_custom' => $rating_show_custom, 'expires' => time + 60*60*24*180) if $set_rating_cookie;
LJ::Request->set_cookie('rating_top_journals_sort' => $output->{'sort'}, 'expires' => time + 60*60*24*180) if $set_sort_cookie;
}
