mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
upload filedrops in alphabetical order
This commit is contained in:
parent
f7e461fac6
commit
1c03705de8
|
@ -800,6 +800,12 @@ function up2k_init(subtle) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
good_files.sort(function (a, b) {
|
||||||
|
a = a[1];
|
||||||
|
b = b[1];
|
||||||
|
return a < b ? -1 : a > b ? 1 : 0;
|
||||||
|
});
|
||||||
|
|
||||||
var msg = ['{0} these {1} files?<ul>'.format(fsearch ? 'search' : 'upload', good_files.length)];
|
var msg = ['{0} these {1} files?<ul>'.format(fsearch ? 'search' : 'upload', good_files.length)];
|
||||||
for (var a = 0, aa = Math.min(20, good_files.length); a < aa; a++)
|
for (var a = 0, aa = Math.min(20, good_files.length); a < aa; a++)
|
||||||
msg.push('<li>' + esc(good_files[a][1]) + '</li>');
|
msg.push('<li>' + esc(good_files[a][1]) + '</li>');
|
||||||
|
|
Loading…
Reference in a new issue