Skip to content

Commit

Permalink
added confirm dialog before submitting/attaching bug
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Sep 20, 2013
1 parent ee7de34 commit b7a503c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions data/tweaks.js
Expand Up @@ -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);
Expand Down

0 comments on commit b7a503c

Please sign in to comment.