summaryrefslogtreecommitdiffstats
path: root/src/search.js
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-08-14 14:49:07 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-08-14 14:49:07 (GMT)
commit9e6be9a8ae24b788cf2463a703bda48cbd77c773 (patch)
treefed426d0d7216311cbd009a1fcd2786176478b5e /src/search.js
parent6e28050ef5483e624122b0bacb998c40664f78ee (diff)
downloadDoxygen-9e6be9a8ae24b788cf2463a703bda48cbd77c773.zip
Doxygen-9e6be9a8ae24b788cf2463a703bda48cbd77c773.tar.gz
Doxygen-9e6be9a8ae24b788cf2463a703bda48cbd77c773.tar.bz2
Release-1.5.9-20090814
Diffstat (limited to 'src/search.js')
-rw-r--r--src/search.js7
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 = '';