--- loncom/html/res/adm/pages/menu.html 2002/09/09 18:30:19 1.66.2.1 +++ loncom/html/res/adm/pages/menu.html 2002/09/06 15:18:23 1.68 @@ -4,7 +4,7 @@ The LearningOnline Network with CAPA Remote Control // -// $Id: menu.html,v 1.66.2.1 2002/09/09 18:30:19 albertel Exp $ +// $Id: menu.html,v 1.68 2002/09/06 15:18:23 www Exp $ // // Copyright Michigan State University Board of Trustees // @@ -50,6 +50,8 @@ var imgpath='/res/adm/pages/'; var fontpath='/adm/lonLCDfont/'; var currentURL=''; var reloadURL=''; +var currentSymb=''; +var reloadSymb=''; var currentStale=1; var menucltim; @@ -233,16 +235,12 @@ function setstatus(tp,bt) { } function is_editable_resource (url) { -// figure out if this a specific resource version var Chunks = url.split('.'); var tmp = Chunks[Chunks.length-1]; if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) { - return false; - } -// see if this is actually in resource space - var SlashChunks=url.split('/'); - if (SlashChunks[1]!='res') { return false; } - return true; + return true; + } + return false; } function cstrgo(currenturl,defaulturl) { @@ -253,14 +251,14 @@ function cstrgo(currenturl,defaulturl) { (! is_editable_resource(currenturl))) { url = defaulturl; } else { - var SlashChunks=currenturl.split('/'); - SlashChunks[1]='priv'; - var i; - for (i=2;i @@ -478,6 +479,7 @@ function catalog_info() { +