Documentation: Fix for Firefox, Find in table of contents panel

This commit is contained in:
Yuriy Artamonov 2013-02-27 11:21:40 +00:00
parent 2616b9d6e3
commit ef3914dac4

View File

@ -63,12 +63,15 @@
$(this).removeClass('toc-search-result');
$(this).removeClass('toc-search-hidden');
} else {
if (this.innerText.toLowerCase().indexOf(searchQuery.toLowerCase()) >= 0) {
$(this).addClass('toc-search-result');
$(this).removeClass('toc-search-hidden');
} else {
$(this).addClass('toc-search-hidden');
$(this).removeClass('toc-search-result');
var innerText = $(this).text();
if (innerText) {
if (innerText.toLowerCase().indexOf(searchQuery.toLowerCase()) >= 0) {
$(this).addClass('toc-search-result');
$(this).removeClass('toc-search-hidden');
} else {
$(this).addClass('toc-search-hidden');
$(this).removeClass('toc-search-result');
}
}
}
});