Don't reload page when navigating to search result post.

This commit is contained in:
Dominik Picheta 2018-05-22 15:32:50 +01:00
commit 6027a4fab0

View file

@ -58,7 +58,7 @@ when defined(js):
tdiv(class="post-main"): tdiv(class="post-main"):
tdiv(class="post-title"): tdiv(class="post-title"):
tdiv(class="thread-title"): tdiv(class="thread-title"):
a(href=url): a(href=url, onClick=anchorCB):
verbatim(searchResult.threadTitle) verbatim(searchResult.threadTitle)
tdiv(class="post-username"): tdiv(class="post-username"):
text searchResult.author.name text searchResult.author.name
@ -67,7 +67,7 @@ when defined(js):
# TODO: History and replying to. # TODO: History and replying to.
let title = searchResult.creation.fromUnix().local. let title = searchResult.creation.fromUnix().local.
format("MMM d, yyyy HH:mm") format("MMM d, yyyy HH:mm")
a(href=url, title=title): a(href=url, title=title, onClick=anchorCB):
text renderActivity(searchResult.creation) text renderActivity(searchResult.creation)
tdiv(class="post-content"): tdiv(class="post-content"):
verbatim(searchResult.postContent) verbatim(searchResult.postContent)