summaryrefslogtreecommitdiff
path: root/templates/themes/ukko
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-04 00:15:56 -0400
committerczaks <marcin@6irc.net>2013-08-04 00:15:56 -0400
commitf2427ca3920147b294f07f58aadcf95cb70447a9 (patch)
tree52c3e1444dcd08d1080dbb144b649e79523f0fdb /templates/themes/ukko
parent1e6b4cbd4a1e5f2ce394d0a2a4c1e760b84e02c6 (diff)
ukko: finally fixed that post (du|multi)plication problem
Diffstat (limited to 'templates/themes/ukko')
-rw-r--r--templates/themes/ukko/ukko.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/themes/ukko/ukko.js b/templates/themes/ukko/ukko.js
index 2c5989ab..d8693db3 100644
--- a/templates/themes/ukko/ukko.js
+++ b/templates/themes/ukko/ukko.js
@@ -79,7 +79,10 @@ $(document).ready(function() {
cache.push(page);
$(data).find('div[id*="thread_"]').each(function() {
- $('form[name="postcontrols"]').prepend($(this).css('display', 'none').attr("data-cached", "yes").attr('data-board', overflow[0].board));
+ var checkout = $(this).attr('id').replace('thread_', '');
+ if ($('div#thread_' + checkout + '[data-board="' + overflow[0].board + '"]').length == 0) {
+ $('form[name="postcontrols"]').prepend($(this).css('display', 'none').attr("data-cached", "yes").attr('data-board', overflow[0].board));
+ }
});
thread = $('div#thread_' + overflow[0].id + '[data-board="' + overflow[0].board + '"][data-cached="yes"]');