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:
Evan Tseng 2017-07-20 12:00:12 +08:00
Родитель fbbdbf4726
Коммит c6516fc09b
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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;