mirror of
https://github.com/9001/copyparty.git
synced 2025-08-20 02:12:20 -06:00
phone ux
This commit is contained in:
parent
ae28dfd020
commit
7c01505750
|
@ -5,7 +5,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<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 }}
|
{{ html_head }}
|
||||||
<link rel="stylesheet" media="screen" href="/.cpr/ui.css?_={{ ts }}">
|
<link rel="stylesheet" media="screen" href="/.cpr/ui.css?_={{ ts }}">
|
||||||
<link rel="stylesheet" media="screen" href="/.cpr/browser.css?_={{ ts }}">
|
<link rel="stylesheet" media="screen" href="/.cpr/browser.css?_={{ ts }}">
|
||||||
|
|
|
@ -938,15 +938,19 @@ function up2k_init(subtle) {
|
||||||
function nav() {
|
function nav() {
|
||||||
start_actx();
|
start_actx();
|
||||||
|
|
||||||
|
var uf = function () { ebi('file' + fdom_ctr).click(); },
|
||||||
|
ud = function () { ebi('dir' + fdom_ctr).click(); };
|
||||||
|
|
||||||
// too buggy on chrome <= 72
|
// too buggy on chrome <= 72
|
||||||
var m = / Chrome\/([0-9]+)\./.exec(navigator.userAgent);
|
var m = / Chrome\/([0-9]+)\./.exec(navigator.userAgent);
|
||||||
if (m && parseInt(m[1]) < 73)
|
if (m && parseInt(m[1]) < 73)
|
||||||
return ebi('file' + fdom_ctr).click();
|
return uf();
|
||||||
|
|
||||||
modal.confirm(L.u_nav_m,
|
// phones dont support folder upload
|
||||||
function () { ebi('file' + fdom_ctr).click(); },
|
if (MOBILE)
|
||||||
function () { ebi('dir' + fdom_ctr).click(); },
|
return uf();
|
||||||
null, L.u_nav_b);
|
|
||||||
|
modal.confirm(L.u_nav_m, uf, ud, null, L.u_nav_b);
|
||||||
}
|
}
|
||||||
ebi('u2btn').onclick = nav;
|
ebi('u2btn').onclick = nav;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue