diff --git a/Custom_Templates/customer_templates/Anthology - Production/_filter_by_category.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/_filter_by_category.html.liquid index 032ab0df..18a8a9a9 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/_filter_by_category.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/_filter_by_category.html.liquid @@ -37,7 +37,6 @@ $('document').ready(function(){ let allCategoryFilters = document.querySelectorAll('.category-filter-entry'); let allSearchedResults = document.querySelectorAll('.course-card'); - for(let i = 1; i < allCategoryFilters.length; i++){ let catFound = false; for(let j = 0; j < allSearchedResults.length; j++){ @@ -52,13 +51,13 @@ // allCategoryFilters[i].style.display = 'none'; // } allCategoryFilters[i].style.display = 'none'; - } + } } }); let filterByCategory = () => { // console.log(event.target.value); - + let allLearning = document.querySelector('.np-catalog-courses').children; // console.log(allLearning); @@ -67,11 +66,11 @@ if(event.target.value == 'Default'){ // if(!allLearning[i].classList.contains('hidden-by-search')){ // allLearning[i].style.display = 'block'; - // } + // } if(!allLearning[i].classList.contains('hidden-by-product')){ allLearning[i].style.display = 'block'; - } + } allLearning[i].classList.remove('filtered'); } else { if(allLearning[i].dataset.categories.indexOf(event.target.value) == -1){ @@ -81,13 +80,13 @@ // if(!allLearning[i].classList.contains('hidden-by-search')){ // allLearning[i].style.display = 'block'; // } - + if(!allLearning[i].classList.contains('hidden-by-product')){ allLearning[i].style.display = 'block'; - } + } allLearning[i].classList.remove('filtered'); }; }; }; } - \ No newline at end of file + diff --git a/Custom_Templates/customer_templates/Anthology - Production/search.html.liquid b/Custom_Templates/customer_templates/Anthology - Production/search.html.liquid index cf51ac34..248ea81c 100644 --- a/Custom_Templates/customer_templates/Anthology - Production/search.html.liquid +++ b/Custom_Templates/customer_templates/Anthology - Production/search.html.liquid @@ -36,7 +36,6 @@ {{ results.count }} Resources {% endcomment %} {% endif %} {% comment %} {% t .results_for %} {% endcomment %} - {% if render_search %}
@@ -213,4 +212,4 @@ height: 100%; } } - \ No newline at end of file + diff --git a/Custom_Templates/customer_templates/WSGC - New Hire/_missing_content_notice.html.liquid b/Custom_Templates/customer_templates/WSGC - New Hire/_missing_content_notice.html.liquid index 168667c1..191da1fd 100644 --- a/Custom_Templates/customer_templates/WSGC - New Hire/_missing_content_notice.html.liquid +++ b/Custom_Templates/customer_templates/WSGC - New Hire/_missing_content_notice.html.liquid @@ -36,4 +36,4 @@ text-decoration: none; } - \ No newline at end of file +