From c23c792a21548798846cd98a37a3386ce45e10d1 Mon Sep 17 00:00:00 2001 From: czaks Date: Wed, 25 Dec 2013 14:16:28 +0100 Subject: [PATCH] fix clicking on post ids with dynamically loaded javascript --- templates/main.js | 2 ++ templates/post_reply.html | 12 ++---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/templates/main.js b/templates/main.js index 52c06cea..8889be3a 100644 --- a/templates/main.js +++ b/templates/main.js @@ -155,6 +155,7 @@ function highlightReply(id) { if (post) post.className += ' highlighted'; } + return false; } function generatePassword() { @@ -207,6 +208,7 @@ function citeReply(id, with_link) { $(window).trigger('cite', [id, with_link]); $(textarea).change(); } + return false; } function rememberStuff() { diff --git a/templates/post_reply.html b/templates/post_reply.html index c5d24247..4fe98ded 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -38,16 +38,8 @@ {% if config.poster_ids %} ID: {{ post.ip|poster_id(post.thread) }} {% endif %} - No. - + No. + {{ post.id }}