projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f271e
)
allow override of closeClick
author
Alan
<alan@roojs.com>
Thu, 29 Dec 2022 07:20:42 +0000
(15:20 +0800)
committer
Alan
<alan@roojs.com>
Thu, 29 Dec 2022 07:20:42 +0000
(15:20 +0800)
Roo/bootstrap/Modal.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Modal.js
b/Roo/bootstrap/Modal.js
index
006fede
..
73ef10c
100644
(file)
--- 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) {