--- rat/client/Attic/code.html 2002/05/24 16:39:23 1.56 +++ rat/client/Attic/code.html 2002/05/25 20:32:10 1.58 @@ -4,7 +4,7 @@ The LearningOnline Network Resource Assembly Tool // -// $Id: code.html,v 1.56 2002/05/24 16:39:23 www Exp $ +// $Id: code.html,v 1.58 2002/05/25 20:32:10 www Exp $ // // Copyright Michigan State University Board of Trustees // @@ -1636,7 +1636,29 @@ function idxopen(mode) { idx=open("/res/?launch=1&mode=rat&catalogmode="+mode,"idxout",options); idx.focus(); } - +// ------------------------------------------------- Open browser to select map + var editbrowser; + function openbrowser(formname,elementname,only,omit) { + var url = '/res/?'; + if (editbrowser == null) { + url += 'launch=1&'; + } + url += 'catalogmode=interactive&'; + url += 'mode=edit&'; + url += 'form=' + formname + '&'; + if (only != null) { + url += 'only=' + only + '&'; + } + if (omit != null) { + url += 'omit=' + omit + '&'; + } + url += 'element=' + elementname + ''; + var title = 'Browser'; + var options = 'scrollbars=1,resizable=1,menubar=0'; + options += ',width=700,height=600'; + editbrowser = copydx.open(url,title,options,'1'); + editbrowser.focus(); + } // ----------------------------------------------------------- Open copy window function copydxopen(mode) { var options="scrollbars=1,resizable=1,menubar=0"; @@ -1645,7 +1667,14 @@ function copydxopen(mode) { copydx=open("",'copydxout',options); copydx.document.clear(''); copydx.document.writeln( - '

Group Copy from Map

'); + '

Group Copy from Map

'+ + '
'+ + '
'); + copydx.document.writeln(''); copydx.focus(); } @@ -2006,11 +2035,7 @@ function graphreset() { objcont[0]=''; objlinks[0]=''; - if (((typeof(objcont[1])=="undefined")&&(typeof(objcont[2])=="undefined")) || - ((objcont[1]=='')&&(objcont[2]==''))) { - objcont[1]='Start::false:start:res' - objcont[2]='Finish::false:finish:res'; - } + graphdef='no'; } @@ -2558,6 +2583,26 @@ function finishload() { for (k=1;k<=maxrow;k++) { if (typeof(rowcont[k])=="undefined") { rowcont[k]=''; } } + } else { + var hasstart=0; + var hasfinish=0; + for (k=0;k