--- rat/client/Attic/code.html 2001/03/15 14:43:12 1.22
+++ rat/client/Attic/code.html 2001/03/15 18:07:01 1.26
@@ -1472,7 +1472,7 @@ function srchclear() {
// ------------------------------------------------------- Closes search window
function srchclose() {
- if (srch) {
+ if (srch && !srch.closed) {
srch.close();
}
}
@@ -2490,6 +2490,8 @@ function togglemode() {
function main() {
if (mainrun==0) {
+ srchopen();
+ srchclose();
infopen();
infoclear();
load();
@@ -2505,7 +2507,7 @@ function leave() {
if (!inf.closed) {
inf.close();
}
- if (!srch.closed) {
+ if (srch && !srch.closed) {
srchclose();
}
}