Skip to content

Commit 1a34dce

Browse files
authored
Fix updated selector for filtering techniques by technology (#297)
1 parent 97d6ec7 commit 1a34dce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_js/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,15 @@ jQuery(document).ready(function($) {
242242
}
243243

244244
function applyTechnologies() {
245-
$('.panel-body li:has(a[href*="/Techniques/"])').show();
245+
$('.panel-body li:has(> a[href*="/Techniques/"])').show();
246246
var technologies = [];
247247
var uncheckedTechnologies = $('#filter-technologies input:not(:checked)');
248248
if (uncheckedTechnologies.length>0) {
249249
uncheckedTechnologies.each(function(index, el) {
250250
technologies.push($(el).val());
251251
});
252252
var selector = technologies.map(function (tech) {
253-
return '.panel-body li:has(a[href*="/' + tech + '/"])';
253+
return '.panel-body li:has(> a[href*="/' + tech + '/"])';
254254
}).join(", ");
255255
$(selector).hide();
256256
saveURL();

js/script.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)