Diff for /loncom/interface/lonnavmaps.pm between versions 1.291 and 1.294

version 1.291, 2004/09/16 16:56:37 version 1.294, 2004/09/20 15:23:13
Line 127  sub nav_control_js { Line 127  sub nav_control_js {
   
 function gonav(url) {  function gonav(url) {
    if (w_loncapanav_flag != 1) {     if (w_loncapanav_flag != 1) {
       go(url);        gopost(url,'');
    }  else {     }  else {
       navwindow=window.open(url,        navwindow=window.open(url,
                   "loncapanav","height=600,width=400,scrollbars=1");                     "loncapanav","height=600,width=400,scrollbars=1"); 
Line 1428  sub render { Line 1428  sub render {
         # We only need to do this if we need to open the maps to show the          # We only need to do this if we need to open the maps to show the
         # current position. This will change the counter so we can't count          # current position. This will change the counter so we can't count
         # for the jump marker with this loop.          # for the jump marker with this loop.
         while (($curRes = $mapIterator->next()) && !$found) {          while ($here && ($curRes = $mapIterator->next()) && !$found) {
             if (ref($curRes) && $curRes->symb() eq $here) {              if (ref($curRes) && $curRes->symb() eq $here) {
                 my $mapStack = $mapIterator->getStack();                  my $mapStack = $mapIterator->getStack();
                                   
Line 3964  sub countParts { Line 3964  sub countParts {
 sub countResponses {  sub countResponses {
     my $self = shift;      my $self = shift;
     my $count;      my $count;
     foreach my $part ($self->parts()) {      foreach my $part (@{$self->parts()}) {
         $count+= $self->responseIds($part);          $count+= scalar($self->responseIds($part));
     }      }
     return $count;      return $count;
 }  }

Removed from v.1.291  
changed lines
  Added in v.1.294


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