From 518cf4be579a51d486d3ee480e5ae224e7d1f3b9 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 26 Aug 2021 00:54:00 +0200 Subject: [PATCH] set fsearch tag on tasks --- copyparty/web/up2k.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index eb320600..e8543e68 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -800,7 +800,7 @@ function up2k_init(subtle) { }); } - var msg = ['upload these ' + good_files.length + ' files?']; + var msg = ['{0} these {1} files?'.format(fsearch?'search':'upload', good_files.length)]; for (var a = 0, aa = Math.min(20, good_files.length); a < aa; a++) msg.push(good_files[a][1]); @@ -844,6 +844,9 @@ function up2k_init(subtle) { }, key = entry.name + '\n' + entry.size; + if (fsearch) + entry.srch = 1; + if (seen[key]) continue; @@ -1572,7 +1575,7 @@ function up2k_init(subtle) { "lmod": t.lmod, "hash": t.hash }; - if (fsearch) + if (t.srch) req.srch = 1; xhr.open('POST', t.purl, true);