Diff for /loncom/html/res/adm/pages/menu.html between versions 1.51 and 1.52

version 1.51, 2002/05/13 19:18:29 version 1.52, 2002/05/15 20:44:24
Line 206  function setstatus(tp,bt) { Line 206  function setstatus(tp,bt) {
    endsend();     endsend();
 }  }
   
   function is_editable_resource (url) {
      var Chunks = url.split('.');
      var tmp = Chunks[Chunks.length-1];
      if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) {
          return true;
      } 
      return false;
   }
   
 function cstrgo(currenturl,defaulturl) {  function cstrgo(currenturl,defaulturl) {
    windowcheck();     windowcheck();
    var url;     var url;
    if (currenturl == null || currenturl == '') {     if ((currenturl == null) || 
          (currenturl == '')   || 
          (! is_editable_resource(currenturl))) {
       url = defaulturl;        url = defaulturl;
    } else {     } else {
       url = currenturl;        url = currenturl;

Removed from v.1.51  
changed lines
  Added in v.1.52


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>