From 3214d00105ec00aa7c93b39ce2f44f0787dcc938 Mon Sep 17 00:00:00 2001
From: Ben Lubar <ben.lubar@gmail.com>
Date: Thu, 14 Jul 2016 16:28:11 -0500
Subject: [PATCH] convert post parent button to a link

---
 public/src/client/topic.js | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/public/src/client/topic.js b/public/src/client/topic.js
index 4c3c4daa81..ce320309f2 100644
--- a/public/src/client/topic.js
+++ b/public/src/client/topic.js
@@ -192,23 +192,14 @@ define('forum/topic', [
 	}
 
 	function addParentHandler() {
-		components.get('topic').on('click', '[component="post/parent"]', function() {
+		components.get('topic').on('click', '[component="post/parent"]', function(e) {
 			var toPid = $(this).attr('data-topid');
 
 			var toPost = $('[component="post"][data-pid="' + toPid + '"]');
 			if (toPost.length) {
+				e.preventDefault();
 				return navigator.scrollToPost(toPost.attr('data-index'), true);
 			}
-
-			socket.emit('posts.getPidIndex', {pid: toPid, tid: ajaxify.data.tid, topicPostSort: config.topicPostSort}, function(err, index) {
-				if (err) {
-					return app.alertError(err.message);
-				}
-
-				if (utils.isNumber(index)) {
-					navigator.scrollToPost(index, true);
-				}
-			});
 		});
 	}