Roo/bootstrap/Modal.js
authorAlan Knowles <alan@roojs.com>
Sun, 9 Dec 2018 00:39:34 +0000 (08:39 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 9 Dec 2018 00:39:34 +0000 (08:39 +0800)
Roo/bootstrap/Modal.js

index c350584..3fbb25f 100644 (file)
@@ -187,7 +187,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
         if(this.specificTitle){
             title = this.title;
 
-        };
+        }
 
         var header = [];
         if (this.allow_close && Roo.bootstrap.version == 3) {
@@ -279,17 +279,13 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
     initEvents : function()
     {
         if (this.allow_close) {
-            this.closeEl.on('click', this.onClosePress, this);
+            this.closeEl.on('click', this.hide, this);
         }
         Roo.EventManager.onWindowResize(this.resize, this, true);
 
 
     },
-    
-    onClosePress : function()
-    {
-        
-    },
+  
 
     resize : function()
     {