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

[livejournal] r19567: 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-08-02 10:30:46 UTC (rev 19566)
+++ branches/fotki/htdocs/update.bml	2011-08-02 11:05:05 UTC (rev 19567)
@@ -385,16 +385,18 @@
         # TODO If remote not exist?
         #####
         my $auth_token = LJ::Auth->sessionless_auth_token ($LJ::DOMAIN_WEB."/pics/upload", user => $remote ? $remote->user : undef);
+        my $user_groups = LJ::JSON->to_json (LJ::Widget::Fotki::Photo->get_user_groups ($remote));
         LJ::need_res('stc/pics/pics.css', 'js/swfupload/swfupload.js', 'js/swfupload/swfupload.queue.js', 'js/jquery/jquery.lj.photouploader.js');
         $$body .= <<JS;
 <script type="text/javascript">
 // TODO: remove after new PhotoHosting release
 window.ljphotoEnabled = true;	
 	
-    jQuery('#content').photouploader({
+    jQuery('body').photouploader({
 		availableSpace: '$available_space',
 		sizesData: $photo_sizes,
         albumsData: $album_list_json,
+        privacyData: $user_groups,
 
         type: 'upload',
         guid: '$auth_token',
@@ -431,7 +433,7 @@
             my $insert_photos_json = LJ::JSON->to_json ( $insert_photos );
 			$$body .= <<JS;
 <script type="text/javascript">
-    jQuery('#content')
+    jQuery('body')
 		.photouploader({
 			insertPhotosData: $insert_photos_json,
 	

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