Skip to content

Node.js based forum software built for the modern web

removed anchor around recent posts on account page

Baris Usaklic1b170ec86c3
diff --git a/public/css/style.less b/public/css/style.less
index f8ceba625f..f56378d34c 100644
--- a/public/css/style.less
+++ b/public/css/style.less
@@ -225,6 +225,10 @@ footer.footer {
div {
color: #333;
margin-bottom: 10px;
+ cursor: pointer;
+ p {
+ color: #333;
+ }
}
span {
padding-top: 10px;
diff --git a/public/src/forum/account.js b/public/src/forum/account.js
index aee6dae9ef..de9c7539fd 100644
--- a/public/src/forum/account.js
+++ b/public/src/forum/account.js
@@ -32,6 +32,10 @@
return false;
});
+ $('.user-recent-posts .topic-row').on('click', function() {
+ ajaxify.go($(this).attr('topic-url'));
+ })
+
});
}());
\ No newline at end of file
diff --git a/public/templates/account.tpl b/public/templates/account.tpl
index da49e47d71..0813a1d346 100644
--- a/public/templates/account.tpl
+++ b/public/templates/account.tpl
@@ -81,13 +81,10 @@
<div class="span6 user-recent-posts">
<h4>recent posts </h4>
<!-- BEGIN posts -->
- <a href="/topic/{posts.tid}/{posts.pid}">
- <div class="topic-row img-polaroid clearfix">
- <span>{posts.content}</span>
- <span class="pull-right">{posts.relativeTime} ago</span>
- </div>
- </a>
-
+ <div class="topic-row img-polaroid clearfix" topic-url="topic/{posts.tid}/{posts.pid}">
+ <span>{posts.content}</span>
+ <span class="pull-right">{posts.relativeTime} ago</span>
+ </div>
<!-- END posts -->
</div>
</div>