--- loncom/homework/response.pm 2015/02/22 01:34:48 1.240 +++ loncom/homework/response.pm 2015/02/23 19:46:19 1.241 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.240 2015/02/22 01:34:48 raeburn Exp $ +# $Id: response.pm,v 1.241 2015/02/23 19:46:19 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -578,15 +578,40 @@ sub start_mathresponse { sub edit_mathresponse_button { my ($partid,$id)=@_; my $field = 'HWVAL_'.$partid.'_'.$id; - my $btype = $env{'browser.type'}; - my $bversion = $env{'browser.version'}; - if (($btype eq 'explorer' && $bversion < 9) || ($btype eq 'safari' && $bversion < 3) || - ($btype eq 'mozilla' && $bversion < 3)) { - # DragMath applet - my $button=&mt('Edit Answer'); -# my $helplink=&Apache::loncommon::help_open_topic('Formula_Editor'); - my $iconpath=$Apache::lonnet::perlvar{'lonIconsURL'}; - return(< function LC_mathedit_${field} (LCtextline) { thenumber = LCtextline; @@ -599,8 +624,7 @@ function LC_mathedit_${field} (LCtextlin $button ENDFORMULABUTTON - - } else { + } elsif ($eqneditor eq 'lcmath') { # LON-CAPA math equation editor my $mathjaxjs; unless (lc(&Apache::lontexconvert::tex_engine()) eq 'mathjax') {