version 1.344, 2016/12/06 20:51:11
|
version 1.345, 2019/03/18 20:18:27
|
Line 1904 sub previous_tries {
|
Line 1904 sub previous_tries {
|
my $tries_text = &get_tries_text('link'); |
my $tries_text = &get_tries_text('link'); |
my $prefix = $env{'form.request.prefix'}; |
my $prefix = $env{'form.request.prefix'}; |
$prefix =~ tr{.}{_}; |
$prefix =~ tr{.}{_}; |
my $function_name = "LONCAPA_previous_tries_".$prefix. |
my $function_name = 'LONCAPA_previous_tries_'.$prefix; |
$Apache::lonxml::curdepth.'_'.$env{'form.counter'}; |
if (($env{'request.state'} eq 'construct') || ($id =~ /[._]|[^\w\s\-]/)) { |
|
$function_name .= $Apache::lonxml::curdepth; |
|
} else { |
|
$function_name .= &js_escape($id); |
|
} |
|
$function_name .= '_'.$Apache::lonxml::counter; |
my $result = &Apache::loncommon::modal_adhoc_window($function_name,420,410,$output,&mt($tries_text))."<br />"; |
my $result = &Apache::loncommon::modal_adhoc_window($function_name,420,410,$output,&mt($tries_text))."<br />"; |
return $result; |
return $result; |
} |
} |