Browse Source

ukko: fix thread duplication

pull/40/head
czaks 11 years ago
parent
commit
c2ba0bc7bf
  1. 4
      templates/themes/ukko/ukko.js

4
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);

Loading…
Cancel
Save