mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-16 11:02:40 +01:00
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:
parent
546e49f560
commit
3a01469dc1
@ -41,15 +41,15 @@ function handle_boards(data) {
|
||||
return $('<span class="favorite-boards"></span>').append(' [ '+boards.join(" / ")+' ] ');
|
||||
} else {
|
||||
return $('<span class="favorite-boards"></span>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user