--- loncom/homework/lonhomework.pm 2007/08/18 00:01:45 1.269 +++ loncom/homework/lonhomework.pm 2007/08/24 21:13:53 1.271 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.269 2007/08/18 00:01:45 albertel Exp $ +# $Id: lonhomework.pm,v 1.271 2007/08/24 21:13:53 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -188,7 +188,6 @@ sub proctor_checked_in { return 0; } -$Apache::lonxml::browse=''; sub check_ip_acc { my ($acc)=@_; &Apache::lonxml::debug("acc is $acc"); @@ -864,10 +863,11 @@ sub editxmlmode { my $js = &Apache::edit::js_change_detection(). &Apache::loncommon::resize_textarea_js(); + my $only_body = ($env{'environment.remote'} eq 'off')? 0 : 1; my $start_page = &Apache::loncommon::start_page(&mt("EditXML [_1]",$file),$js, {'no_auto_mt_title' => 1, - 'only_body' => 1, + 'only_body' => $only_body, 'add_entries' => { 'onresize' => q[resize_textarea('LC_editxmltext','LC_aftertextarea')], 'onload' => q[resize_textarea('LC_editxmltext','LC_aftertextarea')],