mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Close the upload window even if the Java callback fails
This commit is contained in:
@ -385,9 +385,11 @@ if ($zip) {
|
||||
}
|
||||
$info = &file_info_line(&unmake_chroot($refresh), $refresh);
|
||||
print "<script>\n";
|
||||
print "opener.document.FileManager.",
|
||||
print "try {\n";
|
||||
print " opener.document.FileManager.",
|
||||
"upload_notify(\""."e_escape($refresh)."\", ",
|
||||
"\""."e_escape($info)."\");\n";
|
||||
print "} catch(err) { }\n";
|
||||
if ($err) {
|
||||
$err =~ s/\r//g;
|
||||
$err =~ s/\n/\\n/g;
|
||||
|
Reference in New Issue
Block a user