Diff for /loncom/interface/lonspeller.pm between versions 1.7 and 1.8

version 1.7, 2004/07/29 13:38:31 version 1.8, 2004/12/02 16:40:00
Line 65  sub textsection { Line 65  sub textsection {
     my $suggestions=join(' ',$speller->suggest($word));      my $suggestions=join(' ',$speller->suggest($word));
     $suggestions=~s/\'/\\\'/gs;      $suggestions=~s/\'/\\\'/gs;
     if (($suggestions) && (!$insidelink)) {      if (($suggestions) && (!$insidelink)) {
  $output.='<a href="javascript:alert('."'".   $output.='<a href="javascript:spellwin=window.open('.
     $suggestions."');".      &Apache::lonhtmlcommon::javascript_nothing().
     '">';      ',\'spellwin\',\'height=140,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no\');'.
                       'spellwin.'.&Apache::lonhtmlcommon::javascript_docopen.';spellwin.document.writeln(\'<html><body><h3>'.$word.
                       '</h3>'.$suggestions.'</body></html>\');spellwin.document.close();spellwin.focus()">';
     }      }
     $output.='<font color="red">'.$word.'</font>';      $output.='<font color="red">'.$word.'</font>';
     if (($suggestions) && (!$insidelink)) { $output.='</a>'; }      if (($suggestions) && (!$insidelink)) { $output.='</a>'; }

Removed from v.1.7  
changed lines
  Added in v.1.8


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