From: edward Date: Mon, 25 Apr 2016 06:56:52 +0000 (+0800) Subject: Roo/bootstrap/Container.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=76d34c82328b8c89f762435669e5ed9f87bd7cbc;p=roojs1 Roo/bootstrap/Container.js --- diff --git a/Roo/bootstrap/Container.js b/Roo/bootstrap/Container.js index ed393a12eb..1cc8ba91ec 100644 --- a/Roo/bootstrap/Container.js +++ b/Roo/bootstrap/Container.js @@ -232,7 +232,9 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component, { } } - + if(this.clickable){ + this.el.on('click', this.onClick, this); + } }, @@ -351,6 +353,13 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component, { } t.dom.innerHTML = v; + }, + + onClick : function(e) + { + e.preventDefault(); + + this.fireEvent('click', this, e); } });