uridec alerts

This commit is contained in:
ed 2021-07-31 22:05:31 +02:00
parent 0a25a88a34
commit 4c7a2a7ec3
2 changed files with 11 additions and 2 deletions

View file

@ -1627,12 +1627,12 @@ var fileman = (function () {
} }
if (exists.length) if (exists.length)
alert('these ' + exists.length + ' items cannot be pasted here (names already exist):\n\n' + exists.join('\n')); alert('these ' + exists.length + ' items cannot be pasted here (names already exist):\n\n' + uricom_adec(exists).join('\n'));
if (!req.length) if (!req.length)
return; return;
if (!confirm('paste these ' + req.length + ' items here?\n\n' + req.join('\n'))) if (!confirm('paste these ' + req.length + ' items here?\n\n' + uricom_adec(req).join('\n')))
return; return;
function paster() { function paster() {

View file

@ -398,6 +398,15 @@ function uricom_dec(txt) {
} }
function uricom_adec(arr) {
ret = [];
for (var a = 0; a < arr.length; a++)
ret[a] = uricom_dec(arr[a])[0];
return ret;
}
function get_evpath() { function get_evpath() {
var ret = document.location.pathname; var ret = document.location.pathname;