From 1627bccfd4d89e3ded6267ebd6039ecd9dd20c73 Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Wed, 18 Feb 2015 04:34:04 +0800 Subject: [PATCH] Revert "Fixed add_favorites to append to the correct element" --- js/favorites.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/favorites.js b/js/favorites.js index e4d89086..acef9c7e 100644 --- a/js/favorites.js +++ b/js/favorites.js @@ -41,15 +41,15 @@ function handle_boards(data) { return $('').append(' [ '+boards.join(" / ")+' ] '); } else { return $(''); - } + } } 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') {