Commit f2e973fb authored by Jérome Perrin's avatar Jérome Perrin

Gui: prompt for confirm before deleting an element

parent 286e88ff
......@@ -114,7 +114,9 @@
},
Delete: function() {
console.log("Going to delete $(this)", $(this));
priv.removeElement(element_id);
if (confirm("Are you sure you want to delete " + element_id + " ?")) {
priv.removeElement(element_id);
}
$( this ).dialog( "close" );
},
Validate: function() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment