From a0e632e4042572a2c647f521d8c8e916f485a9c4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 11 Sep 2014 17:18:27 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 6900decd68..ffc70ebb01 100644 --- 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 { -- 2.39.2