Fixed add_favorites to append to the correct element

Issue #346
https://github.com/ctrlcctrlv/infinity/issues/346#issuecomment-71119100
This commit is contained in:
bbielsa 2015-01-31 10:36:02 -05:00
parent 546e49f560
commit 3a01469dc1

View File

@ -45,11 +45,11 @@ function handle_boards(data) {
}
function add_favorites() {
$('.favorite-boards').remove();
$('.favorite-boards').empty();
var boards = handle_boards(localStorage.favorites);
$('.boardlist').append(boards);
$('.favorite-boards').append(boards);
};
if (active_page == 'thread' || active_page == 'index' || active_page == 'catalog') {