--- loncom/interface/lonhtmlcommon.pm 2006/06/30 04:02:25 1.138 +++ loncom/interface/lonhtmlcommon.pm 2006/07/06 22:51:34 1.141 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.138 2006/06/30 04:02:25 albertel Exp $ +# $Id: lonhtmlcommon.pm,v 1.141 2006/07/06 22:51:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -467,14 +467,14 @@ ENDJS $result .= &mt('[_1] [_2] [_3] ', $monthselector,$dayselector,$yearselector); if (!$nolink) { - $result .= &mt('[_4]Select Date[_5]',$cal_link,''); + $result .= &mt('[_1]Select Date[_2]',$cal_link,''); } } else { $result .= &mt('[_1] [_2] [_3] [_4] [_5]m [_6]s ', $monthselector,$dayselector,$yearselector, $hourselector,$minuteselector,$secondselector); if (!$nolink) { - $result .= &mt('[_7]Select Date[_8]',$cal_link,''); + $result .= &mt('[_1]Select Date[_2]',$cal_link,''); } } $result .= "\n\n"; @@ -1025,9 +1025,14 @@ sub crumbs { sub spellheader { my $start_page= &Apache::loncommon::start_page('Speller Suggestions',undef, - {'only_body' => 1, - 'js_ready' => 1, - 'bgcolor' => '#DDDDDD',}); + {'only_body' => 1, + 'js_ready' => 1, + 'bgcolor' => '#DDDDDD', + 'add_entries' => { + 'onload' => + 'document.forms.spellcheckform.submit()', + } + }); my $end_page= &Apache::loncommon::end_page({'js_ready' => 1}); @@ -1037,9 +1042,10 @@ sub spellheader { // @@ -1053,7 +1059,7 @@ sub spelllink { my ($form,$field)=@_; my $linktext=&mt('Check Spelling'); return (<$linktext +$linktext ENDLINK }