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

confirm before clearing all

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