Added dialog to confirm deletion of activity.

This commit is contained in:
cap2501 2006-09-17 18:20:43 +00:00
parent 09575480bb
commit 1752e584de

View File

@ -548,6 +548,10 @@ resource_class.prototype.toggle_hide = function(target,e,superficial,force){
resource_class.prototype.delete_button = function(){
if(this.debug)YAHOO.log("Deleteing "+this.getEl().id+"from parent "+this.parentObj.getEl().id);
if(!confirm('Are you sure you wish to delete this '+this.is+"?")){
return false;
}
this.getEl().parentNode.removeChild(this.getEl());
this.parentObj.remove_resource(this);