This commit is contained in:
ed 2022-10-08 14:11:25 +02:00
parent ae28dfd020
commit 7c01505750
2 changed files with 10 additions and 6 deletions

View file

@ -5,7 +5,7 @@
<meta charset="utf-8">
<title>{{ title }}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=0.8">
<meta name="viewport" content="width=device-width, initial-scale=0.8, minimum-scale=0.6">
{{ html_head }}
<link rel="stylesheet" media="screen" href="/.cpr/ui.css?_={{ ts }}">
<link rel="stylesheet" media="screen" href="/.cpr/browser.css?_={{ ts }}">

View file

@ -938,15 +938,19 @@ function up2k_init(subtle) {
function nav() {
start_actx();
var uf = function () { ebi('file' + fdom_ctr).click(); },
ud = function () { ebi('dir' + fdom_ctr).click(); };
// too buggy on chrome <= 72
var m = / Chrome\/([0-9]+)\./.exec(navigator.userAgent);
if (m && parseInt(m[1]) < 73)
return ebi('file' + fdom_ctr).click();
return uf();
modal.confirm(L.u_nav_m,
function () { ebi('file' + fdom_ctr).click(); },
function () { ebi('dir' + fdom_ctr).click(); },
null, L.u_nav_b);
// phones dont support folder upload
if (MOBILE)
return uf();
modal.confirm(L.u_nav_m, uf, ud, null, L.u_nav_b);
}
ebi('u2btn').onclick = nav;