From e43103402cab08b1ae2ca2b5d5282d9068a849a1 Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 29 Dec 2022 15:20:42 +0800 Subject: [PATCH] allow override of closeClick --- Roo/bootstrap/Modal.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index 006fedef7f..73ef10c406 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -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) { -- 2.39.2