Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/cdhigh/KindleEar
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhigh committed Sep 7, 2021
2 parents a16d4b5 + b6ae6ef commit 7c4ecf9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/sharedlibrary.html
Expand Up @@ -274,9 +274,11 @@

//Click a category and then populate the content of links on right side
function selectCategory(obj, category) {
var thisLi = obj.parentNode;
hightlightCategory(thisLi);
toPage(category, 1);
if (obj) {
var thisLi = obj.parentNode;
hightlightCategory(thisLi);
toPage(category, 1);
}
};

function doSearch() {
Expand All @@ -289,7 +291,7 @@
sch_txt = "";
}

all_rss_data_by_category = buildRssByCategory(sch_txt);
buildRssByCategory(sch_txt);
createCategoryMenu();
// select first category by default
selectCategory(document.querySelector(".category-menu"), "{{_('[All]')}}");
Expand Down

0 comments on commit 7c4ecf9

Please sign in to comment.