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

[livejournal] r20179: LJSUP-9961: Bugfixing for New Photohosti...

Committer: gprochaev
LJSUP-9961: Bugfixing for New Photohosting

U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-09-30 03:29:27 UTC (rev 20178)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-09-30 03:57:33 UTC (rev 20179)
@@ -1533,7 +1533,13 @@
             $res;
         } @photos ];
 
-    my $photo_sizes = LJ::JSON->to_json ( LJ::Fotki::Photo->get_photo_sizes() );
+    my @photo_sizes = map {
+        my $size = $_;
+        $size->{'text'} = $BML::ML{$_->{'text'}};
+        $size;
+    } @{LJ::Fotki::Photo->get_photo_sizes()};
+
+    my $photo_sizes_json = LJ::JSON->to_json ( \@photo_sizes );
     my $album_list = [];
     my $album_list_json = '';
     my $available_space = '';
@@ -1562,7 +1568,7 @@
     window.ljphotoEnabled = $ljphoto_enabled;
     jQuery('#updateForm').photouploader({
         availableSpace: '$available_space',
-        sizesData: $photo_sizes,
+        sizesData: $photo_sizes_json,
         albumsData: $album_list_json,
         privacyData: $user_groups,
         type: 'upload',

Tags: 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