mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
linkable maintabs
This commit is contained in:
parent
f32cca292a
commit
e4e63619d4
|
@ -204,6 +204,9 @@ ebi('tree').innerHTML = (
|
||||||
var ops = QSA('#ops>a');
|
var ops = QSA('#ops>a');
|
||||||
for (var a = 0; a < ops.length; a++) {
|
for (var a = 0; a < ops.length; a++) {
|
||||||
ops[a].onclick = opclick;
|
ops[a].onclick = opclick;
|
||||||
|
var v = ops[a].getAttribute('data-dest');
|
||||||
|
if (v)
|
||||||
|
ops[a].href = '#v=' + v;
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
@ -1591,6 +1594,11 @@ function eval_hash() {
|
||||||
i.value = uricom_dec(v.slice(3))[0];
|
i.value = uricom_dec(v.slice(3))[0];
|
||||||
return i.oninput();
|
return i.oninput();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (v.indexOf('#v=') === 0) {
|
||||||
|
goto(v.slice(3));
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue