wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r20925: LJSUP-10485: Need to set last selected s...

Committer: gprochaev
LJSUP-10485: Need to set last selected size by default

U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-01-18 08:56:48 UTC (rev 20924)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-01-18 11:22:01 UTC (rev 20925)
@@ -1593,7 +1593,7 @@
     my @photo_sizes = map { {
         'size'       => $_,
         'text'       => LJ::Lang::ml("fotki.size.$_.text"),
-        'is_default' => ( $_ == $LJ::Pics::Photo::DEFAULT_SIZE ) ? 1 : 0,
+        'is_default' => ( $_ == $remote->prop ('user_selected_image_size') ) ? 1 : 0,
     } } @LJ::Pics::Photo::DISPLAYED_SIZES;
 
     my $photo_sizes_json = LJ::JSON->to_json ( \@photo_sizes );

Tags: gprochaev, livejournal, pm, wisest-owl
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