madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20969: LJSUP-9307: link to entry is changed

Committer: sbelyaev
LJSUP-9307: link to entry is changed
U   trunk/htdocs/editjournal.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2012-01-24 11:35:10 UTC (rev 20968)
+++ trunk/htdocs/editjournal.bml	2012-01-24 11:36:32 UTC (rev 20969)
@@ -119,7 +119,7 @@
                                };
             }
         };
- 
+
         if ( scalar @$items == 0 ) {
             $insert->();
             return @ordered;
@@ -365,9 +365,10 @@
 
                 # check response
                 unless ($res) {
-                    return "<?h1 $ML{'Error'} h1?><?p $ML{'.error.modify'} <ul><li><b>" . LJ::Protocol::error_message($err) . "</b></li></ul> p?>";
+                    return "<?h1 $ML{'Error'} h1?><?p $ML{'.error.modify'} <ul><li><b>" .
+                            LJ::Protocol::error_message($err) .
+                            "</b></li></ul> p?>";
                 }
-               
 
                 my $deleted = $req{event} ? 0 : 1;
                 my $journalu = $usejournal ? $usejournal_u : $remote;
@@ -375,7 +376,8 @@
                 my $entry_url = '';
                 if ($entry_obj->is_delayed) {
                     if (!$res->{itemid}) {
-                        $entry_url = $entry_obj->url;
+                        $entry_url = "$LJ::SITEROOT/manage/scheduled_posts.bml" .
+                                     "#entry_" . $entry_obj->delayedid;
                     } else {
                         $entry_url = $res->{url};
                     }
@@ -572,7 +574,7 @@
             </script>
 LIKE_FAQ
             $ret .= $js;
-	
+
             $ret .= "</td>";
             my $ad = LJ::get_ads({ location => 'bml.editjournal', ljadwrapper => 1 });
             if ($ad) {

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