From f2ff9782a5508a9208c297d0b46f9dfb7910f062 Mon Sep 17 00:00:00 2001 From: Marcel Korpel Date: Sat, 11 Jul 2015 00:24:09 +0200 Subject: Jump to latest comments after adding a comment Signed-off-by: Marcel Korpel Signed-off-by: Lukas Fleischer --- web/html/pkgbase.php | 1 + 1 file changed, 1 insertion(+) (limited to 'web/html') diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php index 65077b3..1581869 100644 --- a/web/html/pkgbase.php +++ b/web/html/pkgbase.php @@ -109,6 +109,7 @@ if (check_token()) { $uid = uid_from_sid($_COOKIE["AURSID"]); pkgbase_add_comment($base_id, $uid, $_REQUEST['comment']); $ret = true; + $fragment = '#news'; } elseif (current_action("do_EditComment")) { list($ret, $output) = pkgbase_edit_comment($_REQUEST['comment']); if ($ret && isset($_POST["comment_id"])) { -- cgit v1.2.3-70-g09d2