--- loncom/homework/structuretags.pm 2007/07/17 18:18:54 1.383 +++ loncom/homework/structuretags.pm 2007/07/23 23:30:47 1.384 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.383 2007/07/17 18:18:54 albertel Exp $ +# $Id: structuretags.pm,v 1.384 2007/07/23 23:30:47 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -125,7 +125,7 @@ function setSubmittedPart (part) { $extra_head .= &Apache::londefdef::generate_css_links(); - if ($target eq 'edit') { + if ($env{'request.state'} eq 'construct') { $extra_head.=&Apache::edit::js_change_detection(). "