--- loncom/homework/lonhomework.pm 2008/05/19 20:38:04 1.292 +++ loncom/homework/lonhomework.pm 2008/07/28 05:26:00 1.296 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.292 2008/05/19 20:38:04 www Exp $ +# $Id: lonhomework.pm,v 1.296 2008/07/28 05:26:00 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -935,8 +935,11 @@ sub editxmlmode { my $js = &Apache::edit::js_change_detection(). &Apache::loncommon::resize_textarea_js(). - &Apache::structuretags::setmode_javascript(); + &Apache::structuretags::setmode_javascript(). + &Apache::lonhtmlcommon::dragmath_js(); my $only_body = ($env{'environment.remote'} eq 'off')? 0 : 1; + my $dragmath_button = + &Apache::lonhtmlcommon::dragmath_button("LC_editxmltext",1); my $start_page = &Apache::loncommon::start_page(&mt("EditXML [_1]",$file),$js, {'no_auto_mt_title' => 1, @@ -959,10 +962,12 @@ sub editxmlmode {
+ + '.$dragmath_button.'
@@ -1102,12 +1107,12 @@ sub get_template_list { next if ($file->[1] !~ /\S/); if ($file->[2] ne $currentcategory) { $currentcategory=$file->[2]; - $count++; if ((!$seconddiv) && ($count >= $midpoint)) { $result .= '
'."\n".'
'."\n"; $seconddiv = 1; } $result.='

'.$currentcategory.'

'; + $count++; } $result .= '