[aur-dev] [PATCH] Jump to latest comments after adding a comment

Marcel Korpel marcel.korpel at gmail.com
Fri Jul 10 22:24:09 UTC 2015


Signed-off-by: Marcel Korpel <marcel.korpel at gmail.com>
---
 web/html/pkgbase.php | 1 +
 1 file changed, 1 insertion(+)

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"])) {
-- 
2.4.5


More information about the aur-dev mailing list