[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm

raeburn raeburn@source.lon-capa.org
Mon, 29 Mar 2010 17:55:55 -0000


raeburn		Mon Mar 29 17:55:55 2010 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - Removing routine which is no longer used.
    - &show_linkitems() was replaced with &show_linkitems_toolbar() in rev 1.430.
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.446 loncom/interface/lonnavmaps.pm:1.447
--- loncom/interface/lonnavmaps.pm:1.446	Mon Mar 29 14:50:46 2010
+++ loncom/interface/lonnavmaps.pm	Mon Mar 29 17:55:55 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.446 2010/03/29 14:50:46 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.447 2010/03/29 17:55:55 raeburn Exp $
 
 #
 # Copyright Michigan State University Board of Trustees
@@ -1802,40 +1802,6 @@
     $$linkitems{$name}{'text'}=&mt($text);
 }
 
-sub show_linkitems {
-    my ($linkitems)=@_;
-    my @linkorder = ("blank","launchnav","closenav","firsthomework",
-		     "everything","uncompleted","changefolder","clearbubbles");
-    
-    my $result .= (<<ENDBLOCK);
-              <td align="left">
-<script type="text/javascript">
-    function changeNavDisplay () {
-	var navchoice = document.linkitems.toplink[document.linkitems.toplink.selectedIndex].value;
-ENDBLOCK
-    foreach my $link (@linkorder) {
-	$result.= "if (navchoice == '$link') {".
-	    $linkitems->{$link}{'cmd'}."}\n";
-    }
-    $result.='}
-              </script>
-                   <form name="linkitems" method="post">
-                       <span class="LC_nobreak"><select name="toplink">'."\n";
-    foreach my $link (@linkorder) {
-	if (defined($linkitems->{$link})) {
-	    if ($linkitems->{$link}{'text'} ne '') {
-		$result .= ' <option value="'.$link.'">'.
-		    $linkitems->{$link}{'text'}."</option>\n";
-	    }
-	}
-    }
-    $result .= '</select>&nbsp;<input type="button" name="chgnav"
-                   value="Go" onclick="javascript:changeNavDisplay()" />
-                </span></form></td>'."\n";
-	
-    return $result;
-}
-
 sub show_linkitems_toolbar {
     my ($linkitems,$condition)=@_;
     my @linkorder = ('firsthomework','everything','uncompleted',