--- loncom/interface/lonhelper.pm 2003/05/07 18:48:15 1.22 +++ loncom/interface/lonhelper.pm 2003/05/07 19:24:07 1.23 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.22 2003/05/07 18:48:15 bowersj2 Exp $ +# $Id: lonhelper.pm,v 1.23 2003/05/07 19:24:07 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1866,10 +1866,15 @@ SCRIPT
  +BUTTONS + + if ($helper->{VARS}->{'construction'}) { + $buttons .= <
  BUTTONS + } } # Get the list of files in this directory. @@ -1920,9 +1925,9 @@ BUTTONS # couldn't figure out how to reach into the event handler's # actual code to retreive a value), but it works well enough # here. - + my $onclick = ''; - if ($status eq 'Published') { + if ($status eq 'Published' && $helper->{VARS}->{'construction'}) { $onclick = 'onclick="a=1" '; } $result .= '" .