forked from GithubBackups/vichan
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
@ -45,11 +45,11 @@ function handle_boards(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function add_favorites() {
|
function add_favorites() {
|
||||||
$('.favorite-boards').remove();
|
$('.favorite-boards').empty();
|
||||||
|
|
||||||
var boards = handle_boards(localStorage.favorites);
|
var boards = handle_boards(localStorage.favorites);
|
||||||
|
|
||||||
$('.boardlist').append(boards);
|
$('.favorite-boards').append(boards);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (active_page == 'thread' || active_page == 'index' || active_page == 'catalog') {
|
if (active_page == 'thread' || active_page == 'index' || active_page == 'catalog') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user