diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index fb3db76af..48c86219f 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -1768,6 +1768,10 @@ html.y #tree.nowrap .ntree a+a:hover { top: .3em; z-index: 9; } +.dumb_loader_thing.ns { + animation: none; + opacity: 1; +} #dlt_t { left: 0; } diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index e235e7df8..ddf4ff7c5 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6441,8 +6441,10 @@ var ahotkeys = function (e) { if (k == 'F2') return fileman.rename(); - if (k == 'F4') + if (k == 'F4') { + enspin('t', 1); return treectl.goto(); + } if (!treectl.hidden && (!sh || !thegrid.en)) { if (kl == 'a') @@ -7997,12 +7999,12 @@ var treectl = (function () { })(); -function enspin(i) { +function enspin(i, ns) { i = 'dlt_' + i; if (ebi(i)) return; var d = mknod('div', i, SPINNER); - d.className = 'dumb_loader_thing'; + d.className = 'dumb_loader_thing' + ( ns? ' ns' : ''); if (SPINNER_CSS) d.style.cssText = SPINNER_CSS; document.body.appendChild(d);