зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1382134 - Do not show section title in search result. r=jaws
MozReview-Commit-ID: L1m1sQG7Uka --HG-- extra : rebase_source : 8d5ade838da9a536a4fdea1bcd073ef58cc710cf
This commit is contained in:
Родитель
fbbdbf4726
Коммит
c6516fc09b
|
@ -244,8 +244,9 @@ var gSearchResultsPane = {
|
|||
|
||||
// Showing or Hiding specific section depending on if words in query are found
|
||||
for (let i = 0; i < rootPreferencesChildren.length; i++) {
|
||||
if (rootPreferencesChildren[i].className != "header" &&
|
||||
rootPreferencesChildren[i].className != "no-results-message" &&
|
||||
if (!rootPreferencesChildren[i].classList.contains("header") &&
|
||||
!rootPreferencesChildren[i].classList.contains("subcategory") &&
|
||||
!rootPreferencesChildren[i].classList.contains("no-results-message") &&
|
||||
this.searchWithinNode(rootPreferencesChildren[i], this.query)) {
|
||||
rootPreferencesChildren[i].hidden = false;
|
||||
resultsFound = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче