summaryrefslogtreecommitdiff
path: root/help3xsl
diff options
context:
space:
mode:
Diffstat (limited to 'help3xsl')
-rw-r--r--help3xsl/help.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js
index e576cb54b5..ba7a4523b4 100644
--- a/help3xsl/help.js
+++ b/help3xsl/help.js
@@ -98,8 +98,11 @@ $(document).ready(function() {
}
debouncer = setTimeout(function(){
if ($('#search-bar').val()) {
- $("#Index ul a:not(:contains('" + $('#search-bar').val() + "'))" ).parent().hide();
- $("#Index ul a:contains('" + $('#search-bar').val() + "')" ).parent().show();
+ var toShow = $('#Index ul a').filter(function(){
+ return $(this).text().toLowerCase().indexOf($('#search-bar').val().toLowerCase()) > -1;
+ });
+ toShow.parent().show();
+ $("#Index ul a").not(toShow).parent().hide();
}
else {
$("#Index ul li" ).show();