From 0334a504aabbc8c22b3497520ad2c49a6275b089 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 9 Jul 2011 02:02:22 +0530 Subject: [PATCH] added confirm to delete boxes --- edgware/static/js/editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/edgware/static/js/editor.js b/edgware/static/js/editor.js index 7ac9730..f2384bb 100644 --- a/edgware/static/js/editor.js +++ b/edgware/static/js/editor.js @@ -1655,8 +1655,10 @@ $(".box").live("click", function(e){ $(".delete_box").bind("click", function(e){ e.preventDefault(); - $(".properties").remove(); - boxObj.deleteme(); + if (confirm("are you sure you wish to permanently delete this box?")) { + $(".properties").remove(); + boxObj.deleteme(); + } }); });