mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
Documentation: Fix for Firefox, Find in table of contents panel
This commit is contained in:
parent
2616b9d6e3
commit
ef3914dac4
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user