Roo/bootstrap/Button.js
[roojs1] / roojs-bootstrap-debug.js
index f720826..5aa266f 100644 (file)
@@ -485,7 +485,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
         } else {
             cfg.tag = this.tag;
         }
-        cfg.html = '<span class="roo-button-text">' + (this.html || cfg.html) + '</span>';
+        cfg.html = this.html || cfg.html;
         
         if (this.toggle == true) {
             cfg={
@@ -1821,7 +1821,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
         this.maskEl.hide();
         //this.el.addClass("x-dlg-modal");
     
-        if (this.buttons.legnth) {
+        if (this.buttons.length) {
             Roo.each(this.buttons, function(bb) {
                 b = Roo.apply({}, bb);
                 b.xns = b.xns || Roo.bootstrap;