mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
fix rcm related errors (#1446)
fix error when rightclicking certain elements, and disable hotkey ^A in inputboxes Co-authored-by: ed <s@ocv.me>
This commit is contained in:
parent
a997455b5a
commit
874e0e7a01
|
|
@ -5740,8 +5740,10 @@ var thegrid = (function () {
|
|||
var ths = QSA('#ggrid>a');
|
||||
|
||||
for (var a = 0, aa = ths.length; a < aa; a++) {
|
||||
var tr = ebi(ths[a].getAttribute('ref')).closest('tr'),
|
||||
cl = tr.className || '';
|
||||
var ref = ths[a].getAttribute('ref');
|
||||
if (!ref)
|
||||
continue;
|
||||
var cl = ebi(ref).closest('tr').className || '';
|
||||
|
||||
if (noq_href(ths[a]).endsWith('/'))
|
||||
cl += ' dir';
|
||||
|
|
@ -6270,6 +6272,9 @@ var ahotkeys = function (e) {
|
|||
return ebi('griden').click();
|
||||
}
|
||||
|
||||
if (aet == 'input')
|
||||
return;
|
||||
|
||||
var in_ftab = (aet == 'tr' || aet == 'td') && ae.closest('#files');
|
||||
if (in_ftab) {
|
||||
var d = '', rem = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue