diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-09-29 07:49:20 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-09-29 07:49:20 +0200 |
commit | 872b7a6341b8d1c92f39f54351acaa3821c12631 (patch) | |
tree | 826b958c8cec01bd87227bba27b8e39d8f762ccf /modules | |
parent | 86716699454c9e1e3440656c56997b80e76bb3c8 (diff) |
Confirm url deletion
Diffstat (limited to 'modules')
-rw-r--r-- | modules/changes/changes.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/changes/changes.html b/modules/changes/changes.html index 7f9656d..bd9b436 100644 --- a/modules/changes/changes.html +++ b/modules/changes/changes.html @@ -81,6 +81,7 @@ function makeURLtr(url){ e.setAttribute("title","Delete URL"); e.addEventListener("click",function(ev){ ev.stopPropagation(); + if(!confirm("Delete the following url?\n"+url))return; fetch("DELETE","/changes/url",url,function(status,body){ if(document.getElementById("timelineheader").firstChild.nodeValue==url){ document.getElementById("timelinecontainer").classList.remove("visible"); |