mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix tabchange triggering tooltips
This commit is contained in:
parent
f4ca62b664
commit
b0c78910bb
|
@ -177,8 +177,10 @@ function opclick(e) {
|
|||
goto(dest);
|
||||
|
||||
var input = QS('.opview.act input:not([type="hidden"])')
|
||||
if (input && !is_touch)
|
||||
if (input && !is_touch) {
|
||||
tt.skip = true;
|
||||
input.focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -503,13 +503,19 @@ var tt = (function () {
|
|||
var r = {
|
||||
"tt": mknod("div"),
|
||||
"en": true,
|
||||
"el": null
|
||||
"el": null,
|
||||
"skip": false
|
||||
};
|
||||
|
||||
r.tt.setAttribute('id', 'tt');
|
||||
document.body.appendChild(r.tt);
|
||||
|
||||
r.show = function () {
|
||||
if (r.skip) {
|
||||
r.skip = false;
|
||||
return;
|
||||
}
|
||||
|
||||
var cfg = sread('tooltips');
|
||||
if (cfg !== null && cfg != '1')
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue