--- loncom/interface/lonhtmlcommon.pm 2005/04/07 06:56:23 1.104 +++ loncom/interface/lonhtmlcommon.pm 2006/03/21 18:39:02 1.122 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.104 2005/04/07 06:56:23 albertel Exp $ +# $Id: lonhtmlcommon.pm,v 1.122 2006/03/21 18:39:02 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -100,7 +100,7 @@ sub store_recent { my ($area,$name,$value)=@_; my $file=&recent_filename($area); my %recent=&Apache::lonnet::dump($file); - if (scalar(keys(%recent))>10) { + if (scalar(keys(%recent))>20) { # remove oldest value my $oldest=time; my $delkey=''; @@ -207,6 +207,28 @@ sub checkbox { return $Str; } + +=pod + +=item radiobutton + +=cut + +############################################## +############################################## +sub radio { + my ($name,$checked,$value) = @_; + my $Str = ' @@ -506,11 +547,13 @@ parameter setting wizard. ############################################## sub pjump_javascript_definition { my $Str = < 1, + 'bgcolor' => '#88DDFF', + 'js_ready' => 1}); + my $end_page = &Apache::loncommon::end_page({'js_ready' => 1}); + #the whole function called through timeout is due to issues #in mozilla Read BUG #2665 if you want to know the whole story - &r_print($r,'"); $prog_state{'formname'}='popremain'; @@ -932,13 +980,14 @@ sub crumbs { sub spellheader { my $html=&Apache::lonxml::xmlbegin(); + my $nothing=&javascript_nothing(); return (< //