Browse Source

ukko: another fix

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

5
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)); $('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 + '"]'); thread = $('div#thread_' + overflow[0].id + '[data-board="' + overflow[0].board + '"][data-cached="yes"]');
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') { if(thread.length > 0) {
$('div[id*="thread_"]').last().after(thread.attr('data-board', overflow[0].board).attr("data-cached", "no").css('display', 'block')); $('div[id*="thread_"]').last().after(thread.attr('data-board', overflow[0].board).attr("data-cached", "no").css('display', 'block'));
boardheader.insertBefore(thread); boardheader.insertBefore(thread);
addukkohide.call(boardheader); addukkohide.call(boardheader);

Loading…
Cancel
Save