From b7a503cf5e36dd3ef9e6ef8fa0a069797872f0ef Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 20 Sep 2013 17:56:23 +0300 Subject: [PATCH] added confirm dialog before submitting/attaching bug --- data/tweaks.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/tweaks.js b/data/tweaks.js index e2697e2..c32c613 100644 --- a/data/tweaks.js +++ b/data/tweaks.js @@ -26,8 +26,11 @@ if (list) { console.log("BUG #: " + bug); var li = makeButton(list, bug); li.addEventListener("click", function(event) { - send(bug, document.location.toString()); - event.stopPropagation(); + var confirmation = confirm("Are you sure you want to do this?"); + if (confirmation) { + send(bug, document.location.toString()); + event.stopPropagation(); + }; }, true); list.appendChild(li);