--- loncom/interface/lonhelper.pm 2005/02/17 23:19:44 1.97 +++ loncom/interface/lonhelper.pm 2005/02/22 11:43:05 1.98 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.97 2005/02/17 23:19:44 albertel Exp $ +# $Id: lonhelper.pm,v 1.98 2005/02/22 11:43:05 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1977,6 +1977,7 @@ BUTTONS $mapUrl = $self->{MAP_URL}; } + # Create the composite function that renders the column on the nav map # have to admit any language that lets me do this can't be all bad # - Jeremy (Pythonista) ;-) @@ -2005,14 +2006,19 @@ BUTTONS return $result; } else { my $col = ""; + my $raw_name = &$valueFunc($resource); my $resource_name = - HTML::Entities::encode(&$valueFunc($resource),"<>&\"'"); + HTML::Entities::encode($raw_name,"<>&\"'"); if($option_vars) { foreach my $option_var (@$option_vars) { + my $checked =""; + if($helper->{VARS}->{$option_var} =~ /$raw_name/) { + $checked = "checked"; + } $col .= " "; + $resource_name . "' $checked /> "; } }