added confirm to delete boxes

This commit is contained in:
Sanj 2011-07-09 02:02:22 +05:30
parent c4a8957161
commit 0334a504aa

View File

@ -1655,8 +1655,10 @@ $(".box").live("click", function(e){
$(".delete_box").bind("click", function(e){ $(".delete_box").bind("click", function(e){
e.preventDefault(); e.preventDefault();
if (confirm("are you sure you wish to permanently delete this box?")) {
$(".properties").remove(); $(".properties").remove();
boxObj.deleteme(); boxObj.deleteme();
}
}); });
}); });