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-result');
|
||||||
$(this).removeClass('toc-search-hidden');
|
$(this).removeClass('toc-search-hidden');
|
||||||
} else {
|
} else {
|
||||||
if (this.innerText.toLowerCase().indexOf(searchQuery.toLowerCase()) >= 0) {
|
var innerText = $(this).text();
|
||||||
$(this).addClass('toc-search-result');
|
if (innerText) {
|
||||||
$(this).removeClass('toc-search-hidden');
|
if (innerText.toLowerCase().indexOf(searchQuery.toLowerCase()) >= 0) {
|
||||||
} else {
|
$(this).addClass('toc-search-result');
|
||||||
$(this).addClass('toc-search-hidden');
|
$(this).removeClass('toc-search-hidden');
|
||||||
$(this).removeClass('toc-search-result');
|
} else {
|
||||||
|
$(this).addClass('toc-search-hidden');
|
||||||
|
$(this).removeClass('toc-search-result');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user