set fsearch tag on tasks

This commit is contained in:
ed 2021-08-26 00:54:00 +02:00
parent 71096182be
commit 518cf4be57

View file

@ -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);