diff options
Diffstat (limited to 'core/modules/system/js/system.modules.js')
-rw-r--r-- | core/modules/system/js/system.modules.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/modules/system/js/system.modules.js b/core/modules/system/js/system.modules.js index 98f53c683bc8..fb19695e9fde 100644 --- a/core/modules/system/js/system.modules.js +++ b/core/modules/system/js/system.modules.js @@ -31,10 +31,13 @@ const re = new RegExp(`\\b${query}`, 'i'); function showModuleRow(index, row) { - const $row = $(row); - const $sources = $row.find('.table-filter-text-source, .module-name, .module-description'); - const textMatch = $sources.text().search(re) !== -1; - $row.closest('tr').toggle(textMatch); + const sources = row.querySelectorAll('.table-filter-text-source, .module-name, .module-description'); + let sourcesConcat = ''; + sources.forEach(item => { + sourcesConcat += item.textContent; + }); + const textMatch = sourcesConcat.search(re) !== -1; + $(row).closest('tr').toggle(textMatch); } $rowsAndDetails.show(); |