Committer: gprochaev
LJSUP-10485: Need to set last selected size by defaultU 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 );