summaryrefslogtreecommitdiffstats
path: root/quicksearch.js
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-12-25 07:24:35 +0100
committerjake%acutex.net <>2001-12-25 07:24:35 +0100
commit150d0d4a4d122a0cc0a6a55413f3dfc9d5cc512c (patch)
treeb6030aad5cf56eb23c588997a34901a2708d2c08 /quicksearch.js
parent87a32c8524548cd941fa21a9bc8c43045fd38bce (diff)
downloadbugzilla-150d0d4a4d122a0cc0a6a55413f3dfc9d5cc512c.tar.gz
bugzilla-150d0d4a4d122a0cc0a6a55413f3dfc9d5cc512c.tar.xz
Re-fixing bug 37339 - Checking an undefined variable for a specific value didn't work in Netscape 4 (and was probably a strict warning everywhere else).
Fix by Christian Reis <kiko@async.com.br> r= afranke, jake
Diffstat (limited to 'quicksearch.js')
-rw-r--r--quicksearch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/quicksearch.js b/quicksearch.js
index e8834a722..ff43a5f1d 100644
--- a/quicksearch.js
+++ b/quicksearch.js
@@ -46,7 +46,7 @@ function do_shift(l) {
}
function go_to (url) {
- if (sidebar == 1) {
+ if ( typeof sidebar != "undefined" && sidebar == 1 ) {
load_relative_url(url);
} else {
document.location.href = url;