From: Alan Date: Thu, 29 Dec 2022 07:20:42 +0000 (+0800) Subject: allow override of closeClick X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=e43103402cab08b1ae2ca2b5d5282d9068a849a1 allow override of closeClick --- 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) {