Roo/bootstrap/Modal.js
authorEdward <edward@roojs.com>
Mon, 27 Apr 2015 03:09:55 +0000 (11:09 +0800)
committerEdward <edward@roojs.com>
Mon, 27 Apr 2015 03:09:55 +0000 (11:09 +0800)
Roo/bootstrap/Modal.js

index 7f06bc7..a4ba780 100644 (file)
@@ -247,6 +247,10 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
     },
     hide : function()
     {
+        if(this.fireEvent("beforehide", this) === false){
+            return;
+        }
+        
         this.maskEl.hide();
         Roo.get(document.body).removeClass("x-body-masked");
         this.el.removeClass('in');