summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/themes/ukko/ukko.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/themes/ukko/ukko.js b/templates/themes/ukko/ukko.js
index 11617593..f89fa5c7 100644
--- a/templates/themes/ukko/ukko.js
+++ b/templates/themes/ukko/ukko.js
@@ -83,7 +83,9 @@ $(document).ready(function() {
});
thread = $('div#thread_' + overflow[0].id + '[data-board="' + overflow[0].board + '"]');
- if(thread.length > 0 && thread.attr('data-cached') !== 'no') {
+ var existingthread = $('div#thread_' + overflow[0].id + '[data-board="' + overflow[0].board + '"][data-cached="no"]');
+
+ if(existingthread.length == 0 && thread.length > 0 && thread.attr('data-cached') !== 'no') {
$('div[id*="thread_"]').last().after(thread.attr('data-board', overflow[0].board).attr("data-cached", "no").css('display', 'block'));
boardheader.insertBefore(thread);
addukkohide.call(boardheader);