diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 1efb295e..89270d54 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -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;