Fix typo in confirmation dialog for file deletion in portal_files.html template.
This commit is contained in:
@@ -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');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user