Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r22032: LJSV-1062 (Quick Reply doesn't always re...

Committer: ailyin
LJSV-1062 (Quick Reply doesn't always return you to the newly posted comment); original patch by Afuna in Dreamwidth, thanks!
U   trunk/cgi-bin/LJ/S2/EntryPage.pm
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/EntryPage.pm	2012-05-23 08:50:42 UTC (rev 22031)
+++ trunk/cgi-bin/LJ/S2/EntryPage.pm	2012-05-23 08:54:07 UTC (rev 22032)
@@ -411,6 +411,7 @@
     $p->{'_picture_keyword'} = $get->{'prop_picture_keyword'};
 
     $p->{'viewing_thread'} = $get->{'thread'} ? 1 : 0;
+    $p->{'_viewing_thread_id'} = $get->{'thread'} + 0;
 
     # default values if there were no comments, because
     # LJ::Talk::load_comments() doesn't provide them.

Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2012-05-23 08:50:42 UTC (rev 22031)
+++ trunk/cgi-bin/LJ/S2.pm	2012-05-23 08:54:07 UTC (rev 22032)
@@ -3564,7 +3564,7 @@
         my $ditemid = $page->{'entry'}{'itemid'} || 0;
 
         my $userpic = LJ::ehtml($page->{'_picture_keyword'}) || "";
-        my $thread = $page->{'viewing_thread'} + 0 || "";
+        my $thread = $page->{'_viewing_thread_id'} + 0 || "";
         my $text_hint = $ctx->[S2::PROPS]->{'comment_form_text_hint'} || '';
 
         $text_hint = LJ::dhtml ($text_hint);

Tags: ailyin, andy, livejournal, pm
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