mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
set fsearch tag on tasks
This commit is contained in:
parent
71096182be
commit
518cf4be57
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue