mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
phone ux
This commit is contained in:
parent
ae28dfd020
commit
7c01505750
|
@ -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 }}">
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue