madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21093: LJSUP-9307: enable control strip for sch...

Committer: sbelyaev
LJSUP-9307: enable control strip for scheduled entries and remove usejournal
U   trunk/htdocs/preview/entry.bml
U   trunk/htdocs/update.bml
Modified: trunk/htdocs/preview/entry.bml
===================================================================
--- trunk/htdocs/preview/entry.bml	2012-02-03 14:11:29 UTC (rev 21092)
+++ trunk/htdocs/preview/entry.bml	2012-02-03 14:13:58 UTC (rev 21093)
@@ -249,7 +249,9 @@
 
         $p->{head_content}->set_object_type( $p->{_type} );
         # Don't show the navigation strip
-        $p->{head_content}->set_options( { dont_show_nav_strip => 'UNUSED' } );
+        if (!$delayed_id) {
+            $p->{head_content}->set_options( { dont_show_nav_strip => 'UNUSED' } );
+        }
 
         my $userlite_journal = LJ::S2::UserLite($u);
         my $userlite_poster  = LJ::S2::UserLite($up);

Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2012-02-03 14:11:29 UTC (rev 21092)
+++ trunk/htdocs/update.bml	2012-02-03 14:13:58 UTC (rev 21093)
@@ -625,7 +625,8 @@
                         $itemid = $itemid * 256 + $anum;
                         $$body .= BML::ml('.update.success2', {'aopts' => "href='" . $ju->journal_base . "/'"});
                     } else {
-                        $$body .= BML::ml('.update.success3', {'aopts' => "href=$LJ::SITEROOT/manage/scheduled_posts.bml?usejournal=" . $ju->username});
+                        my $ext = $remote->equal($ju) ? '' : "?usejournal=" . $ju->username;
+                        $$body .= BML::ml('.update.success3', {'aopts' => "href=$LJ::SITEROOT/manage/scheduled_posts.bml$ext"});
                     }
 
                     $$body .= $res->{extra_result_message};

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