mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 12:23:48 +01:00
Revert "Fixed add_favorites to append to the correct element"
This commit is contained in:
parent
8ddc472239
commit
1627bccfd4
@ -41,15 +41,15 @@ function handle_boards(data) {
|
|||||||
return $('<span class="favorite-boards"></span>').append(' [ '+boards.join(" / ")+' ] ');
|
return $('<span class="favorite-boards"></span>').append(' [ '+boards.join(" / ")+' ] ');
|
||||||
} else {
|
} else {
|
||||||
return $('<span class="favorite-boards"></span>');
|
return $('<span class="favorite-boards"></span>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_favorites() {
|
function add_favorites() {
|
||||||
$('.favorite-boards').empty();
|
$('.favorite-boards').remove();
|
||||||
|
|
||||||
var boards = handle_boards(localStorage.favorites);
|
var boards = handle_boards(localStorage.favorites);
|
||||||
|
|
||||||
$('.favorite-boards').append(boards);
|
$('.boardlist').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