Commit 4a391f74 authored by Jérome Perrin's avatar Jérome Perrin

confirm before clearing all

parent 62f5013c
......@@ -190,8 +190,10 @@
// Enable "Clear All" button
$("#clear_all").button().click(
function (e) {
dream_instance.clearAll();
e.preventDefault();
if (confirm("Are you sure you want to clear all ?")) {
dream_instance.clearAll();
e.preventDefault();
}
return false;
});
......
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