From b6ae6ef23cf3a50eb8d2bf2e28b928b5ecbdf23f Mon Sep 17 00:00:00 2001 From: cdhigh Date: Sun, 29 Aug 2021 12:23:06 -0300 Subject: [PATCH] V1.26.8_bugfix --- templates/sharedlibrary.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/sharedlibrary.html b/templates/sharedlibrary.html index 2649a17a..f329f1f4 100644 --- a/templates/sharedlibrary.html +++ b/templates/sharedlibrary.html @@ -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() { @@ -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]')}}");