--- loncom/homework/chemresponse.pm 2015/03/07 23:04:08 1.95 +++ loncom/homework/chemresponse.pm 2015/03/09 14:57:03 1.96 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # chemical equation style response # -# $Id: chemresponse.pm,v 1.95 2015/03/07 23:04:08 raeburn Exp $ +# $Id: chemresponse.pm,v 1.96 2015/03/09 14:57:03 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -87,8 +87,27 @@ sub separate_jme_window { } } if ($usejsme) { - if ($env{'browser.type'} eq 'mozilla') { - if ($env{'browser.version'} < 4) { + if ($env{'browser.type'} eq 'safari') { + unless ($env{'browser.mobile'}) { + if ($env{'browser.version'} < 522) { + $usejsme = 0; + } + } + } elsif ($env{'browser.type'} eq 'mozilla') { + if ($env{'browser.version'} < 5) { + $usejsme = 0; + } elsif ($env{'browser.info'} =~ /^firefox\-([\d\.]+)/) { + my $firefox = $1; + if ($firefox < 12) { + $usejsme = 0; + } + } + } elsif ($env{'browser.type'} eq 'explorer') { + if ($env{'browser.version'} < 7) { + $usejsme = 0; + } + } elsif ($env{'browser.type'} eq 'opera') { + if ($env{'browser.version'} < 15) { $usejsme = 0; } }