diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2009-08-14 14:49:07 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2009-08-14 14:49:07 (GMT) |
commit | 8c6ca30831818a77a6947baad63ab99cb8cd8c31 (patch) | |
tree | fed426d0d7216311cbd009a1fcd2786176478b5e /src/search_js.h | |
parent | 142b4807d2ae7479691bd0800d28364b9857b82f (diff) | |
download | Doxygen-8c6ca30831818a77a6947baad63ab99cb8cd8c31.zip Doxygen-8c6ca30831818a77a6947baad63ab99cb8cd8c31.tar.gz Doxygen-8c6ca30831818a77a6947baad63ab99cb8cd8c31.tar.bz2 |
Release-1.5.9-20090814
Diffstat (limited to 'src/search_js.h')
-rw-r--r-- | src/search_js.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/search_js.h b/src/search_js.h index d7b2a75..51fdb00 100644 --- a/src/search_js.h +++ b/src/search_js.h @@ -56,7 +56,7 @@ " storing this instance. Is needed to be able to set timeouts.\n" " resultPath - path to use for external files\n" "*/\n" -"function SearchBox(name, resultsPath, inFrame)\n" +"function SearchBox(name, resultsPath, inFrame, label)\n" "{\n" " if (!name || !resultsPath) { alert(\"Missing parameters to SearchBox.\"); }\n" " \n" @@ -72,6 +72,7 @@ " this.searchIndex = 0;\n" " this.searchActive = false;\n" " this.insideFrame = inFrame;\n" +" this.searchLabel = label;\n" "\n" " // ----------- DOM Elements\n" "\n" @@ -382,7 +383,7 @@ "\n" " var searchField = this.DOMSearchField();\n" "\n" -" if (searchField.value == 'Search') // clear \"Search\" term upon entry\n" +" if (searchField.value == this.searchLabel) // clear \"Search\" term upon entry\n" " { \n" " searchField.value = ''; \n" " this.searchActive = true;\n" @@ -391,7 +392,7 @@ " else if (!isActive) // directly remove the panel\n" " {\n" " this.DOMSearchBox().className = 'MSearchBoxInactive';\n" -" this.DOMSearchField().value = 'Search';\n" +" this.DOMSearchField().value = this.searchLabel;\n" " this.searchActive = false;\n" " this.lastSearchValue = ''\n" " this.lastResultsPage = '';\n" |