--- loncom/homework/bridgetask.pm 2006/03/28 19:55:43 1.122 +++ loncom/homework/bridgetask.pm 2006/03/30 16:50:18 1.128.2.4 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.122 2006/03/28 19:55:43 albertel Exp $ +# $Id: bridgetask.pm,v 1.128.2.4 2006/03/30 16:50:18 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -213,6 +213,7 @@ sub add_grading_button { 'gradinguser', 'gradingdomain'); $result.=&Apache::loncommon::studentbrowser_javascript(); + $result.= '
'; } return $result; } @@ -258,64 +259,14 @@ sub preserve_grade_info { } sub style { - return (< + my ($target) = @_; + if ($target eq 'web' + || $target eq 'webgrade') { + return (< STYLE - + } + return; } sub show_task { @@ -428,7 +379,15 @@ sub start_Task { my ($result,$head_tag_start,$body_tag_start,$form_tag_start)= &Apache::structuretags::page_start($target,$token,$tagstack,$parstack,$parser,$safeeval); + $head_tag_start .= &style($target); $body_tag_start .= '