|
|
|
@ -146,7 +146,7 @@ function getIcon(filename) {
|
|
|
|
|
<script> |
|
|
|
|
function check_replace() { |
|
|
|
|
var old_files = <%- JSON.stringify((testdata && testdata.files ? testdata.files : []).map(x => x.filename)) %>; |
|
|
|
|
var replaced_files = Array.from($('#upload_file')[0].files).map(function (x) { return x.name; }).filter(function (x) { return old_files.includes(x); }); |
|
|
|
|
var replaced_files = Array.prototype.slice.call($('#upload_file')[0].files).map(function (x) { return x.name; }).filter(function (x) { return old_files.includes(x); }); |
|
|
|
|
var s = ''; |
|
|
|
|
for (let file of replaced_files) s += '<samp>' + file + '</samp><br>'; |
|
|
|
|
if (s) { |
|
|
|
@ -161,4 +161,4 @@ function getIcon(filename) {
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<% include footer %> |
|
|
|
|
<% include footer %> |
|
|
|
|