--- rat/client/Attic/code.html 2001/04/30 17:01:06 1.29 +++ rat/client/Attic/code.html 2001/05/28 19:22:45 1.31 @@ -2312,7 +2312,6 @@ function condense() { function load() { message("Loading"); schedule('load'); - checkdef(); } function finishload() { @@ -2422,12 +2421,8 @@ function wheelswitch() { // --------------------------------------------- Checks if server frame defined function checkdef() { - if (parent.server!=undefined) { - if (parent.server.document!=undefined) { - if (parent.server.document.forms.storage.output.value!=undefined) { - srvloaded(); - } - } + if (parent.flag==1) { + srvloaded(); } if ((finishdone==0) && (tim==0)) { setTimeout('checkdef()',100); } } @@ -2456,7 +2451,8 @@ function schedule(action) { reqaction=action; tim=0; finishdone=0; - canceltim=setTimeout('tim=1;',20000) + canceltim=setTimeout('tim=1;',20000); + checkdef(); wait(); } @@ -2464,6 +2460,7 @@ function schedule(action) { function storechange() { var k; + parent.flag=0; parent.server.document.forms.storage.submit(); schedule('save'); }