From 92c1057b5cc085cdf27794266c98a7fdfaec51bb Mon Sep 17 00:00:00 2001 From: topkek Date: Fri, 24 Oct 2014 05:55:18 +0100 Subject: [PATCH 1/3] Use append instead of insertAfter to add new posts --- js/auto-reload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/auto-reload.js b/js/auto-reload.js index 47063984..155e54ce 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -158,7 +158,7 @@ $(document).ready(function(){ first_new_post = this; makeIcon(); } - $(this).insertAfter($('div.post:last').next()).after('
'); + $('
').appendTo($('div.thread')).after(this); new_posts++; loaded_posts++; $(document).trigger('new_post', this); From 35bd6435614fe8a5c792a170a439184bd3a70511 Mon Sep 17 00:00:00 2001 From: topkek Date: Fri, 24 Oct 2014 05:58:23 +0100 Subject: [PATCH 2/3] Put hr outside of the div so it appears below posts --- templates/post_thread.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/post_thread.html b/templates/post_thread.html index 33e953ee..aa130c0a 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -85,5 +85,6 @@ {% for post in post.posts %} {% include 'post_reply.html' %} {% endfor %} -
{% if hr %}
{% endif %} +
+{% if hr %}
{% endif %} From 2b318b652803c8b9cc076a9d5dc79e91aeed21c0 Mon Sep 17 00:00:00 2001 From: topkek Date: Fri, 24 Oct 2014 06:07:12 +0100 Subject: [PATCH 3/3] Make it a little neater --- js/auto-reload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/auto-reload.js b/js/auto-reload.js index 155e54ce..6935409e 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -158,7 +158,7 @@ $(document).ready(function(){ first_new_post = this; makeIcon(); } - $('
').appendTo($('div.thread')).after(this); + $('div.thread').append($('
')).after(this); new_posts++; loaded_posts++; $(document).trigger('new_post', this);