1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

Merge pull request #394 from ctrlcctrlv/revert-381-master

Revert "Fixed add_favorites to append to the correct element"
This commit is contained in:
Fredrick Brennan 2015-02-18 04:35:26 +08:00
commit 6cc668a722

View File

@ -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').empty();
$('.favorite-boards').remove();
var boards = handle_boards(localStorage.favorites);
$('.favorite-boards').append(boards);
$('.boardlist').append(boards);
};
if (active_page == 'thread' || active_page == 'index' || active_page == 'catalog') {