madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20923: LJSUP-10439: 'usejournal' added to 'new ...

Committer: sbelyaev
LJSUP-10439: 'usejournal' added to 'new schedule entry' link
U   trunk/htdocs/manage/scheduled_posts.bml
Modified: trunk/htdocs/manage/scheduled_posts.bml
===================================================================
--- trunk/htdocs/manage/scheduled_posts.bml	2012-01-18 08:42:33 UTC (rev 20922)
+++ trunk/htdocs/manage/scheduled_posts.bml	2012-01-18 08:56:36 UTC (rev 20923)
@@ -133,9 +133,6 @@
     $ret .= "<div class='b-editentries-header'>";
     $ret .= "<h1>" . BML::ml('.title') . "</h1>";
 
-    $ret .= '<a href="/update.bml?type=scheduled">';
-    $ret .= BML::ml('.newpost') . '</a>';
-
     $ret .= "<form action='$page_name$getextra' method='get' class='b-editentries-form'>\n";
     $ret .= "<p>" . LJ::html_text( { 'name'        => 'usejournal', 
                                      'size'        => '20', 
@@ -153,6 +150,10 @@
     $ret .= "<label for='only_me'>".$ML{'.only_my_entries'}."</label></p>";
     $ret .= "</form>\n";
 
+    my $usejournal_text = $usejournal ? 'usejournal=mojo&' : '';
+    $ret .= "<a href=\"/update.bml?${usejournal_text}type=scheduled\">";
+    $ret .= BML::ml('.newpost') . '</a>';
+
     if ( !$usejournal_u || $usejournal_u->is_community ) {
         $ret .= "<p><a href='$LJ::SITEROOT/manage/$page_name'>" . BML::ml('.lnk.journal') . "</a></p>";
     }

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