Diff for /loncom/xml/lonxml.pm between versions 1.85 and 1.86

version 1.85, 2001/06/02 19:55:46 version 1.86, 2001/06/03 18:33:54
Line 9 Line 9
 # 5/10 Scott Harrison  # 5/10 Scott Harrison
 # 5/26 Gerd Kortemeyer  # 5/26 Gerd Kortemeyer
 # 5/27 H. K. Ng  # 5/27 H. K. Ng
 # 6/2 Gerd Kortemeyer  # 6/2,6/3 Gerd Kortemeyer
   
 package Apache::lonxml;   package Apache::lonxml; 
 use vars   use vars 
Line 99  sub fontsettings() { Line 99  sub fontsettings() {
 }  }
   
 sub registerurl {  sub registerurl {
   return (<<ENDSCRIPT);      if ($ENV{'REQUEST_URI'}!~/^\/(res\/)*adm\//) {
    return (<<ENDREGTHIS);
   
 <script language="JavaScript">  <script language="JavaScript">
 // BEGIN LON-CAPA Internal  // BEGIN LON-CAPA Internal
   
     function LONCAPAreg() {      function LONCAPAreg() {
        if (window.location.pathname!="/res/adm/pages/menu.html") {  
   menu=window.open("","LONCAPAmenu");    menu=window.open("","LONCAPAmenu");
             menu.clearTimeout(menu.menucltim);
   menu.currentURL=window.location.pathname;    menu.currentURL=window.location.pathname;
           menu.currentStale=0;            menu.currentStale=0;
           menu.clearbut(3,1);            menu.clearbut(3,1);
Line 118  sub registerurl { Line 121  sub registerurl {
        (2,1,'back.gif','backward','','gopost("/adm/flip","back:"+currentURL)');         (2,1,'back.gif','backward','','gopost("/adm/flip","back:"+currentURL)');
           menu.switchbutton            menu.switchbutton
      (2,3,'forw.gif','forward','','gopost("/adm/flip","forward:"+currentURL)');       (2,3,'forw.gif','forward','','gopost("/adm/flip","forward:"+currentURL)');
        }  
     }      }
     
     function LONCAPAstale() {      function LONCAPAstale() {
        if (window.location.pathname!="/res/adm/pages/menu.html") {    menu=window.open("","LONCAPAmenu");
             menu.currentStale=1;
             menu.switchbutton
               (3,1,'reload.gif','return','location','go(currentURL)');
             menu.menucltim=menu.setTimeout(
    'clearbut(2,1);clearbut(2,3);clearbut(8,1);clearbut(8,2);clearbut(8,3);',
     2000);
   
       }
   
   // END LON-CAPA Internal
   </script>
   ENDREGTHIS
   
       } else {
           return (<<ENDDONOTREGTHIS);
   
   <script language="JavaScript">
   // BEGIN LON-CAPA Internal
   
       function LONCAPAreg() {
   menu=window.open("","LONCAPAmenu");    menu=window.open("","LONCAPAmenu");
           menu.currentStale=1;            menu.currentStale=1;
           menu.clearbut(2,1);            menu.clearbut(2,1);
Line 130  sub registerurl { Line 152  sub registerurl {
           menu.clearbut(8,1);            menu.clearbut(8,1);
           menu.clearbut(8,2);            menu.clearbut(8,2);
           menu.clearbut(8,3);            menu.clearbut(8,3);
           menu.switchbutton            if (menu.currentURL) {
             (3,1,'reload.gif','return','location','go(currentURL)');               menu.switchbutton
        }                (3,1,'reload.gif','return','location','go(currentURL)');
      } else {
         menu.clearbut(3,1);
             }
     }      }
   
       function LONCAPAstale() {
       }
   
 // END LON-CAPA Internal  // END LON-CAPA Internal
 </script>  </script>
 ENDSCRIPT  ENDDONOTREGTHIS
   
       }
 }  }
   
 sub loadevents() {  sub loadevents() {

Removed from v.1.85  
changed lines
  Added in v.1.86


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