From 89d07210fe6287d1990ac6b6635938b853b26123 Mon Sep 17 00:00:00 2001 From: stackxp Date: Wed, 24 Dec 2025 13:17:30 +0100 Subject: [PATCH] Remove file creation reload delay --- copyparty/web/browser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index ef76a158..4a3bf4a0 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -9491,9 +9491,8 @@ var rcm = (function () { return toast.err(3, "a " + (is_dir ? "folder" : "file") + " with that name already exists."); if (req.status < 200 || req.status > 399) return toast.err(3, "couldn't create " + (is_dir ? "folder" : "file") + ":
" + esc(req.responseText) + ''); - toast.ok(3, "OK :)"); - setTimeout(function() {location.reload()}, 100); + location.reload(); }; req.send(data); } @@ -9623,8 +9622,8 @@ var rcm = (function () { clmod(ebi('rpst'), 'hide', !has_clip); clmod(ebi('rs3'), 'hide', !has_sel || !has_clip); - menu.style.left = x + 'px'; - menu.style.top = y + 'px'; + menu.style.left = x + 1 + 'px'; + menu.style.top = y + 1 + 'px'; menu.style.display = 'block'; menu.focus(); } @@ -9641,6 +9640,7 @@ var rcm = (function () { ebi('wrap').oncontextmenu = function(e) { hide(true); + console.log(e.detail) if (thegrid.en || !r.enabled || (r.double && e.detail > 1)) return true; ev(e);