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 | |
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')
-rw-r--r-- | src/search.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/search.js b/src/search.js index 7f81e57..49655c5 100644 --- a/src/search.js +++ b/src/search.js @@ -56,7 +56,7 @@ function getYPos(item) storing this instance. Is needed to be able to set timeouts. resultPath - path to use for external files */ -function SearchBox(name, resultsPath, inFrame) +function SearchBox(name, resultsPath, inFrame, label) { if (!name || !resultsPath) { alert("Missing parameters to SearchBox."); } @@ -72,6 +72,7 @@ function SearchBox(name, resultsPath, inFrame) this.searchIndex = 0; this.searchActive = false; this.insideFrame = inFrame; + this.searchLabel = label; // ----------- DOM Elements @@ -382,7 +383,7 @@ function SearchBox(name, resultsPath, inFrame) var searchField = this.DOMSearchField(); - if (searchField.value == 'Search') // clear "Search" term upon entry + if (searchField.value == this.searchLabel) // clear "Search" term upon entry { searchField.value = ''; this.searchActive = true; @@ -391,7 +392,7 @@ function SearchBox(name, resultsPath, inFrame) else if (!isActive) // directly remove the panel { this.DOMSearchBox().className = 'MSearchBoxInactive'; - this.DOMSearchField().value = 'Search'; + this.DOMSearchField().value = this.searchLabel; this.searchActive = false; this.lastSearchValue = '' this.lastResultsPage = ''; |