diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-08-14 14:49:07 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-08-14 14:49:07 (GMT) |
commit | 9e6be9a8ae24b788cf2463a703bda48cbd77c773 (patch) | |
tree | fed426d0d7216311cbd009a1fcd2786176478b5e /src/search_js.h | |
parent | 6e28050ef5483e624122b0bacb998c40664f78ee (diff) | |
download | Doxygen-9e6be9a8ae24b788cf2463a703bda48cbd77c773.zip Doxygen-9e6be9a8ae24b788cf2463a703bda48cbd77c773.tar.gz Doxygen-9e6be9a8ae24b788cf2463a703bda48cbd77c773.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" |