summaryrefslogtreecommitdiff
path: root/templates/themes
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-03 22:17:25 -0400
committerczaks <marcin@6irc.net>2013-08-03 22:17:25 -0400
commitddcad35f6ca434c8082e29db9ad92daab385a6ef (patch)
tree654f763af5791801c188c178816db3be737f6c3f /templates/themes
parentc2ba0bc7bfe8bac43b95fbb986f93444476059d3 (diff)
ukko: another fix
Diffstat (limited to 'templates/themes')
-rw-r--r--templates/themes/ukko/ukko.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/themes/ukko/ukko.js b/templates/themes/ukko/ukko.js
index f89fa5c7..2c5989ab 100644
--- a/templates/themes/ukko/ukko.js
+++ b/templates/themes/ukko/ukko.js
@@ -82,10 +82,9 @@ $(document).ready(function() {
$('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 + '"]');
- var existingthread = $('div#thread_' + overflow[0].id + '[data-board="' + overflow[0].board + '"][data-cached="no"]');
+ thread = $('div#thread_' + overflow[0].id + '[data-board="' + overflow[0].board + '"][data-cached="yes"]');
- if(existingthread.length == 0 && thread.length > 0 && thread.attr('data-cached') !== 'no') {
+ if(thread.length > 0) {
$('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);