From eeba2309d8a9ea8defaeb5cd3f34e6b0fe98f401 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Wed, 19 Jan 2005 10:21:23 +0000 Subject: [PATCH] Allow users to press Enter to search in the navbar. --- lib/visualpatterns/NavBar.inc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/visualpatterns/NavBar.inc b/lib/visualpatterns/NavBar.inc index e0d41fc..89cabed 100644 --- a/lib/visualpatterns/NavBar.inc +++ b/lib/visualpatterns/NavBar.inc @@ -259,7 +259,8 @@ class NavBar { if ((strcmp($this->sSection,"Standard Search") == 0) || (strcmp($this->sSection,"Advanced Search") == 0)) { $bar .= "\n "; } else { - $bar .= "\n"; + $bar .= "rootUrl . "/control.php')\"/>\n"; (isset($this->iFolderID) ? $bar .= "iFolderID . "\" />\n " : $bar .= ""); (isset($this->iDocumentID) ? $bar .= "iDocumentID . "\" />\n " : $bar .= ""); (isset($this->sCategoryName) ? $bar .= "sCategoryName . "\" />\n " : $bar .= ""); @@ -288,6 +289,21 @@ class NavBar { function getSearchValidationJavaScript() { $sToRender = "\n\n