ukko: fix javascript interoperation

This commit is contained in:
czaks 2013-07-27 00:57:12 -04:00
parent 35f8730f40
commit e3cb427fee
4 changed files with 26 additions and 6 deletions

View file

@ -10,6 +10,7 @@ $(document).ready(function() {
if(thread.length > 0) {
thread.prepend('<h2><a href="/' + overflow[0].board + '/">/' + overflow[0].board + '/</a></h2>');
$('div[id*="thread_"]').last().after(thread.attr('data-board', overflow[0].board).css('display', 'block'));
$(document).trigger('new_post', thread);
overflow.shift();
}
} else {
@ -25,6 +26,7 @@ $(document).ready(function() {
if(thread.length > 0) {
thread.prepend('<h2><a href="/' + overflow[0].board + '/">/' + overflow[0].board + '/</a></h2>');
$('div[id*="thread_"]').last().after(thread.attr('data-board', overflow[0].board).css('display', 'block'));
$(document).trigger('new_post', thread);
overflow.shift();
}
@ -33,5 +35,4 @@ $(document).ready(function() {
}
}
});
});