projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5279533
)
Roo/bootstrap/Button.js
author
Alan Knowles
<alan@roojs.com>
Thu, 11 Sep 2014 09:18:27 +0000
(17:18 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 11 Sep 2014 09:18:27 +0000
(17:18 +0800)
Roo/bootstrap/Button.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Button.js
b/Roo/bootstrap/Button.js
index
6900dec
..
ffc70eb
100644
(file)
--- a/
Roo/bootstrap/Button.js
+++ b/
Roo/bootstrap/Button.js
@@
-264,6
+264,14
@@
Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, {
initEvents: function() {
// Roo.log('init events?');
// Roo.log(this.el.dom);
+
+ if (typeof (this.menu) != 'undefined') {
+ this.menu.parentType = this.xtype;
+ this.menu.triggerEl = this.el;
+ cn.addxtype(Roo.apply({}, this.menu));
+ }
+
+
if (this.el.hasClass('roo-button')) {
this.el.on('click', this.onClick, this);
} else {