From 000deaca257a18b2a20570675ee6fa832d892546 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 15 Apr 2014 18:51:08 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 08d95c9f8b..6c5a8a6fad 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -65,9 +65,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { ontext: 'ON', offtext: 'OFF', defaulton: true, - preventDefault : true, - removeClass : false, - name : false, + preventDefault: true, + removeClass: false, + name: false, + target: false, getAutoCreate : function(){ @@ -238,6 +239,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { cfg.cls = ''; } + if(this.target){ + cfg.target = this.target; + } + return cfg; }, initEvents: function() { -- 2.39.2