summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorMarcel Korpel <marcel.korpel@gmail.com>2015-07-11 00:24:09 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-08-08 12:59:24 +0200
commitf2ff9782a5508a9208c297d0b46f9dfb7910f062 (patch)
treed877a7fc5caed23979bbd5a064e2b4b4a4801b87 /web/html
parent19aff5f9583b2450208cbd748c1e4b2ce27b3fe0 (diff)
downloadaurweb-f2ff9782a5508a9208c297d0b46f9dfb7910f062.tar.xz
Jump to latest comments after adding a comment
Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgbase.php1
1 files changed, 1 insertions, 0 deletions
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"])) {