diff --git a/collects/scribblings/main/private/search.js b/collects/scribblings/main/private/search.js index 24578fc49c..3fdf06b0f4 100644 --- a/collects/scribblings/main/private/search.js +++ b/collects/scribblings/main/private/search.js @@ -136,7 +136,7 @@ function InitializeSearch() { +" to search only the reference manual") +'>') +'' - +'' + +'' +'' + ((exact == results_num) ? 'all' : exact) + ' exact)'; - if (search_results.length == 0) - status_line.innerHTML = ((last_search_term=="") ? "" : "No matches found"); - else if (search_results.length <= results_num) + if (search_results.length == 0) { + if (last_search_term == "") status_line.innerHTML = ""; + else status_line.innerHTML = 'No matches found ' + + '
' + + '(Make sure your spelling is correct' + + (last_search_term.search(/ /)>=0 ? ', or try fewer keywords' : '') + + ')
'; + } else if (search_results.length <= results_num) status_line.innerHTML = "Showing all matches" + exact; else status_line.innerHTML =