From 1ddba07e3e9b62e13608a2bcec121b758bd46fc0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 9 Dec 2018 08:39:34 +0800 Subject: [PATCH] Roo/bootstrap/Modal.js --- Roo/bootstrap/Modal.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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() { -- 2.39.2