From: john Date: Fri, 7 Dec 2018 05:21:37 +0000 (+0800) Subject: Merge branch 'master' of http://git.roojs.com/roojs1 X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=d7fbd89557759c0d551e98cc0b9c4e8b3e4f524d;hp=debeedba65a3b0548fffa79b21238ad173737a3b;p=roojs1 Merge branch 'master' of git.roojs.com/roojs1 --- diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index d3d2608866..ab945dd052 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -41,7 +41,14 @@ Roo.bootstrap.Modal = function(config){ * @param {Roo.bootstrap.Modal} this * @param {Roo.EventObject} e */ - "resize" : true + "resize" : true, + /** + * @event close + * Fire when the top 'x' close button is pressed. + * @param {Roo.bootstrap.Modal} this + * @param {Roo.EventObject} e + */ + "close" : true }); this.buttons = this.buttons || []; @@ -272,11 +279,16 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { initEvents : function() { if (this.allow_close) { - this.closeEl.on('click', this.hide, this); + this.closeEl.on('click', this.onClosePress, this); } Roo.EventManager.onWindowResize(this.resize, this, true); + }, + + onClosePress : function() + { + }, resize : function()