summaryrefslogtreecommitdiffstats
path: root/templates/html/search.js
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-11-25 10:59:50 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-11-25 10:59:50 (GMT)
commit3655a0164951b5bce015196381267d2b878ab901 (patch)
treefe2541e93fbabecf8193a41ba7845c44f3dc75d0 /templates/html/search.js
parent6de91dc5e32e6d97a557fe6910a6cbf1d453ad9c (diff)
downloadDoxygen-3655a0164951b5bce015196381267d2b878ab901.zip
Doxygen-3655a0164951b5bce015196381267d2b878ab901.tar.gz
Doxygen-3655a0164951b5bce015196381267d2b878ab901.tar.bz2
Default doxygen search mechanism doesn't work when using with XHTML output
The problem has been tested with the doxygen test 021. With the output format html all works OK. - When giving a `t` in the search window a window appears with the message "This XML file does not appear to have any style information associated with it. The document tree is shown below." - the `<html> statement has to replaced by `<html xmlns="http://www.w3.org/1999/xhtml">` in searchindex.cpp (is normally also present in the non search xhtml files). - this results in a window with just the words: Loading.... Searching... No Matches - this is due to the extra `<!--` / `-->` in the htmlsearchresults.tpl (strange enough html output has no problem with it). - When giving a `a` in the search windows we get a "File not found" message as the file nomatches.html cannot be found - the extension for "nomatches" has to be set properly as well (search.js), for the other files this is done a few lines upward.
Diffstat (limited to 'templates/html/search.js')
-rw-r--r--templates/html/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/html/search.js b/templates/html/search.js
index f591fd6..77ee7ab 100644
--- a/templates/html/search.js
+++ b/templates/html/search.js
@@ -355,7 +355,7 @@ function SearchBox(name, resultsPath, inFrame, label, extension)
}
else // nothing available for this search term
{
- resultsPage = this.resultsPath + '/nomatches.html';
+ resultsPage = this.resultsPath + '/nomatches' + this.extension;
resultsPageWithSearch = resultsPage;
hasResultsPage = false;
}