From 872b7a6341b8d1c92f39f54351acaa3821c12631 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 29 Sep 2016 07:49:20 +0200 Subject: Confirm url deletion --- modules/changes/changes.html | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/changes/changes.html') 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"); -- cgit v1.2.3-70-g09d2