Fix typo in confirmation dialog for file deletion in portal_files.html template.

This commit is contained in:
nearxos
2026-02-20 09:43:41 +02:00
parent ed5e1a1101
commit b33afb41dc

View File

@@ -158,7 +158,7 @@
btn.onclick = function() { btn.onclick = function() {
var path = btn.getAttribute('data-path'); var path = btn.getAttribute('data-path');
var type = btn.getAttribute('data-type'); var type = btn.getAttribute('data-type');
if (!confirm('Delete ' + type + ' “‘ + path + '?')) return; if (!confirm('Delete ' + type + ' "' + path + '"?')) return;
authFetch('/api/portal-files/' + encodeURIComponent(path), { method: 'DELETE' }).then(function(r) { return r.json(); }).then(function(d) { authFetch('/api/portal-files/' + encodeURIComponent(path), { method: 'DELETE' }).then(function(r) { return r.json(); }).then(function(d) {
if (d.ok) fetchPortal(); else alert(d.error || 'Delete failed'); if (d.ok) fetchPortal(); else alert(d.error || 'Delete failed');
}); });