allow override of closeClick
authorAlan <alan@roojs.com>
Thu, 29 Dec 2022 07:20:42 +0000 (15:20 +0800)
committerAlan <alan@roojs.com>
Thu, 29 Dec 2022 07:20:42 +0000 (15:20 +0800)
Roo/bootstrap/Modal.js

index 006fede..73ef10c 100644 (file)
@@ -295,10 +295,16 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
             : this.el.select('.modal-footer div',true).first();
 
     },
+    
+    closeClick : function()
+    {
+        this.hide();
+    },
+    
     initEvents : function()
     {
         if (this.allow_close) {
-            this.closeEl.on('click', this.hide, this);
+            this.closeEl.on('click', this.closeClick, this);
         }
         Roo.EventManager.onWindowResize(this.resize, this, true);
         if (this.editableTitle) {