From: Edward Date: Wed, 16 Apr 2014 13:05:49 +0000 (+0800) Subject: Roo/bootstrap/Button.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=0822dc426d88162fb948e86a02b11cfa77ab251a;p=roojs1 Roo/bootstrap/Button.js --- diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index bec1d57027..8395226e13 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -176,59 +176,6 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { cfg.html = this.html + ' '; } - if (this.disabled) { - cfg.disabled = 'disabled'; - } - //???? - if (this.items) { - Roo.log('changing to ul' ); - cfg.tag = 'ul'; - this.glyphicon = 'caret'; - } - - if (this.glyphicon) { - cfg.html = ' ' + cfg.html; - - cfg.cn = [ - { - tag: 'span', - cls: 'glyphicon glyphicon-' + this.glyphicon - } - ]; - } - - if (this.badge) { - cfg.html += ' '; - - cfg.tag = 'a'; - -// cfg.cls='btn roo-button'; - - cfg.href=this.href; - - var value = cfg.html; - - if(this.glyphicon){ - value = { - tag: 'span', - cls: 'glyphicon glyphicon-' + this.glyphicon, - html: this.html - }; - - } - - cfg.cn = [ - value, - { - tag: 'span', - cls: 'badge', - html: this.badge - } - ]; - - cfg.html=''; - } - if (cfg.tag !== 'a' && this.href !== '') { throw "Tag must be a to set href."; } else if (this.href.length > 0) {