Diff for /loncom/interface/lonsearchcat.pm between versions 1.348 and 1.349

version 1.348, 2016/04/22 17:22:29 version 1.349, 2016/08/04 20:59:22
Line 3528  sub display_url { Line 3528  sub display_url {
     } elsif ($url=~m{^(http://|/uploaded/)}) {      } elsif ($url=~m{^(http://|/uploaded/)}) {
  $link='<span class="LC_filename">'.$url.'</span>';   $link='<span class="LC_filename">'.$url.'</span>';
     } else {      } else {
           # replace the links to open in a new window
           # (because the search opens in a new window, it gets
           # confusing when the links open a tab in the
           # parent window; ideally we should not force windows)
           my $onclick = " onclick=\"window.open(this.href, '_blank', 'toolbar=1,location=1,menubar=0');return false;\""; 
         $link=&Apache::lonhtmlcommon::crumbs(          $link=&Apache::lonhtmlcommon::crumbs(
                   $url,                    $url,
                   'preview',                    'preview',
                   '',                    '',
                   '',                    '',
                   $skiplast).' ';                    $skiplast,$onclick).' ';
         # replace the links to open in a new window  
         # (because the search opens in a new window, it gets  
         # confusing when the links open a tab in the  
         # parent window; ideally we should not force windows)  
         $link =~ s/(href="[^"]*")/\1 onclick="window.open(this.href, '_blank', 'toolbar=1,location=1,menubar=0');return false;"/g;  
     }      }
     return $link;      return $link;
 }  }

Removed from v.1.348  
changed lines
  Added in v.1.349


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