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

[livejournal] r19532: LJSUP-8713

Committer: wisest-owl
LJSUP-8713

U   branches/fotki/htdocs/update.bml
Modified: branches/fotki/htdocs/update.bml
===================================================================
--- branches/fotki/htdocs/update.bml	2011-07-26 12:21:52 UTC (rev 19531)
+++ branches/fotki/htdocs/update.bml	2011-07-27 03:01:18 UTC (rev 19532)
@@ -205,7 +205,7 @@
                 my $res = $photo->is_valid ? {
                     photo_desc  => $photo->desc,
                     photo_title => $photo->title,
-                    photo_url   => $photo->u100_url,
+                    photo_url   => @photos > 1 ? $photo->u100_url : $photo->u600_url,
                     photo_id    => $photo->url_id,
                 } : undef;
                 $res;
@@ -416,6 +416,10 @@
             ."'fotki.album.resize.to.post': '".BML::ml('fotki.album.resize.to.post')."',"
             ."'fotki.album.stop.upload.confirm': '".BML::ml('fotki.album.stop.upload.confirm')."',"
             ."'fotki.album.close.without.saving.confirm': '".BML::ml('fotki.album.close.without.saving.confirm')."',"
+            ."'fotki.album.uploading.image': '".BML::ml('fotki.album.uploading.image')."',"
+            ."'fotki.album.available.now': '".BML::ml('fotki.album.available.now')."',"
+			."'fotki.album.click.image': '".BML::ml('fotki.album.click.image')."',"
+			."'fotki.album.remove.image': '".BML::ml('fotki.album.remove.image')."',"
             ."'fotki.album.create.new': '".BML::ml('fotki.album.create.new')."'";
         $$body .= <<JS;
         }
@@ -431,14 +435,7 @@
 		.photouploader({
 			insertPhotosData: $insert_photos_json,
 	
-	        type: 'add',
-	        ml: {
-JS
-	            $$body .= "'fotki.album.remove.image': '".BML::ml('fotki.album.remove.image')."',"
-	            ."'fotki.album.close.without.saving.confirm': '".BML::ml('fotki.album.close.without.saving.confirm')."',"
-	            ."'fotki.album.create.new': '".BML::ml('fotki.album.create.new')."'";
-	        $$body .= <<JS;
-	        }
+	        type: 'add'
 	    })
 		.bind('htmlready', function (event, htmlOutput) {
 			if (window.switchedRteOn) {

Tags: bml, livejournal, 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