Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added dialog to confirm deletion of activity.

  • Loading branch information...
commit 1752e584de7e6da75bfab36ee3100b1426cf9123 1 parent 0957548
authored September 17, 2006

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  lib/ajax/section-resource_classes.js
4  lib/ajax/section-resource_classes.js
@@ -548,6 +548,10 @@ resource_class.prototype.toggle_hide = function(target,e,superficial,force){
548 548
 resource_class.prototype.delete_button = function(){
549 549
         if(this.debug)YAHOO.log("Deleteing "+this.getEl().id+"from parent "+this.parentObj.getEl().id);
550 550
         
  551
+        if(!confirm('Are you sure you wish to delete this '+this.is+"?")){
  552
+           return false;
  553
+        }
  554
+        
551 555
         this.getEl().parentNode.removeChild(this.getEl());
552 556
         this.parentObj.remove_resource(this);
553 557
         

0 notes on commit 1752e58

Please sign in to comment.
Something went wrong with that request. Please try again.