Roo/bootstrap/DocumentManager.js
authoredward <edward@roojs.com>
Wed, 17 Feb 2016 05:47:28 +0000 (13:47 +0800)
committeredward <edward@roojs.com>
Wed, 17 Feb 2016 05:47:28 +0000 (13:47 +0800)
Roo/bootstrap/DocumentManager.js

index 344d501..83caf15 100644 (file)
@@ -327,20 +327,24 @@ Roo.extend(Roo.bootstrap.DocumentManager, Roo.bootstrap.Component,  {
     {
         e.preventDefault();
         
-        if(this.fireEvent('beforeremove', this, o) != false){
-            
-            Roo.each(this.files, function(file){
-                if(typeof(file.id) == 'undefined' || file.id * 1 < 1 || file.id != o.id){
-                    return;
-                }
-                
-                file.status = 'DELETE';
-                o.target.mask();
-
-            }, this);
-
-            this.fireEvent('onremove', this, o);
-        }
+        o.target.mask();
+        
+        this.fireEvent('remove', this, o);
+        
+//        if(this.fireEvent('beforeremove', this, o) != false){
+//            
+//            Roo.each(this.files, function(file){
+//                if(typeof(file.id) == 'undefined' || file.id * 1 < 1 || file.id != o.id){
+//                    return;
+//                }
+//                
+//                file.status = 'DELETE';
+//                o.target.mask();
+//
+//            }, this);
+//
+//            this.fireEvent('onremove', this, o);
+//        }
         
     },