From: Alan Knowles Date: Sun, 9 Dec 2018 00:39:34 +0000 (+0800) Subject: Roo/bootstrap/Modal.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=1ddba07e3e9b62e13608a2bcec121b758bd46fc0 Roo/bootstrap/Modal.js --- diff --git a/Roo/bootstrap/Modal.js b/Roo/bootstrap/Modal.js index c350584a4a..3fbb25f94d 100644 --- a/Roo/bootstrap/Modal.js +++ b/Roo/bootstrap/Modal.js @@ -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() {