version 1.105, 2013/12/17 00:33:42
|
version 1.105.2.3, 2016/09/14 18:14:48
|
Line 56 sub useHTML5 {
|
Line 56 sub useHTML5 {
|
} elsif ($env{'browser.type'} eq 'safari') { |
} elsif ($env{'browser.type'} eq 'safari') { |
if ($env{'browser.os'} eq 'mac') { |
if ($env{'browser.os'} eq 'mac') { |
my ($prefix,$version) = ($env{'browser.version'} =~ /^(\d*)(\d{3})\./); |
my ($prefix,$version) = ($env{'browser.version'} =~ /^(\d*)(\d{3})\./); |
if ((!$env{'browser.mobile'}) || |
if ($version >= 536) { |
(($env{'browser.mobile'}) && length($prefix))) { |
return 1; |
if ($version >= 536) { |
|
return 1; |
|
} |
|
} |
} |
} |
} |
} elsif ($env{'browser.type'} eq 'mozilla') { |
} elsif ($env{'browser.type'} eq 'mozilla') { |
Line 76 sub useHTML5 {
|
Line 73 sub useHTML5 {
|
if (($env{'browser.os'} eq 'win') && ($env{'browser.version'} >= 10)) { |
if (($env{'browser.os'} eq 'win') && ($env{'browser.version'} >= 10)) { |
return 1; |
return 1; |
} |
} |
|
} elsif ($env{'browser.type'} eq 'opera') { |
|
if ($env{'browser.version'} >= 18) { |
|
return 1; |
|
} |
} |
} |
return 0; |
return 0; |
} |
} |
Line 1456 sub start_functionplotresponse {
|
Line 1457 sub start_functionplotresponse {
|
my $ylabel=&Apache::lonxml::get_param('ylabel',$parstack,$safeeval); |
my $ylabel=&Apache::lonxml::get_param('ylabel',$parstack,$safeeval); |
if ($target eq 'edit') { |
if ($target eq 'edit') { |
$result.=&Apache::edit::start_table($token) |
$result.=&Apache::edit::start_table($token) |
.'<tr><td><span class="LC_nobreak">'.&mt('Function Plot Question').'</span></td>' |
.'<tr><td><span class="LC_nobreak">'.&Apache::loncommon::insert_folding_button().&mt('Function Plot Question').'</span></td>' |
.'<td><span class="LC_nobreak">'.&mt('Delete?').' ' |
.'<td><span class="LC_nobreak">'.&mt('Delete?').' ' |
.&Apache::edit::deletelist($target,$token).' ' |
.&Apache::edit::deletelist($target,$token).' ' |
.&Apache::edit::insertlist($target,$token).' ' |
.&Apache::edit::insertlist($target,$token).' ' |
Line 2043 sub start_functionplotruleset {
|
Line 2044 sub start_functionplotruleset {
|
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
if ($target eq 'edit') { |
if ($target eq 'edit') { |
return &Apache::edit::start_table($token). |
return &Apache::edit::start_table($token). |
'<tr><td><span class="LC_nobreak">'.&mt('Function Plot Rule Set').'</span></td>' |
'<tr><td><span class="LC_nobreak">'.&Apache::loncommon::insert_folding_button().&mt('Function Plot Rule Set').'</span></td>' |
.'<td><span class="LC_nobreak">'.&mt('Delete?').' ' |
.'<td><span class="LC_nobreak">'.&mt('Delete?').' ' |
.&Apache::edit::deletelist($target,$token).' '. |
.&Apache::edit::deletelist($target,$token).' '. |
&Apache::edit::insertlist($target,$token).' ' |
&Apache::edit::insertlist($target,$token).' ' |
Line 2236 sub start_functionplotelements {
|
Line 2237 sub start_functionplotelements {
|
|
|
if ($target eq 'edit') { |
if ($target eq 'edit') { |
return &Apache::edit::start_table($token). |
return &Apache::edit::start_table($token). |
'<tr><td><span class="LC_nobreak">'.&mt('Function Plot Elements').'</span></td>' |
'<tr><td><span class="LC_nobreak">'.&Apache::loncommon::insert_folding_button() |
|
.&mt('Function Plot Elements').'</span></td>' |
.'<td><span class="LC_nobreak">'.&mt('Delete?').' ' |
.'<td><span class="LC_nobreak">'.&mt('Delete?').' ' |
.&Apache::edit::deletelist($target,$token).' '. |
.&Apache::edit::deletelist($target,$token).' '. |
&Apache::edit::insertlist($target,$token).' ' |
&Apache::edit::insertlist($target,$token).' ' |