diff options
| author | czaks <marcin@6irc.net> | 2013-08-03 21:59:05 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-03 21:59:05 -0400 |
| commit | c2ba0bc7bfe8bac43b95fbb986f93444476059d3 (patch) | |
| tree | 6acd050474d608b8f518b3d92b7b7695ea920569 /templates/themes/ukko/ukko.js | |
| parent | 1f5ce14f591522096da7011c1d5f18abb09f03fe (diff) | |
ukko: fix thread duplication
Diffstat (limited to 'templates/themes/ukko/ukko.js')
| -rw-r--r-- | templates/themes/ukko/ukko.js | 4 |
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); |
