Roo/bootstrap/Modal.js
authorAlan Knowles <alan@roojs.com>
Tue, 22 Jul 2014 09:43:43 +0000 (17:43 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 22 Jul 2014 09:43:43 +0000 (17:43 +0800)
Roo/bootstrap/Modal.js

index 17751f6..86f3fce 100644 (file)
@@ -227,15 +227,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
     
     addButton : function(str, cb)
     {
-        if (!this.el) {
-            
-            this.buttons.push({
-                html : str,
-                listeners : { click : cb.createDelegate(this) }
-            } );
-            return;
-        }
-        
+         
         
         var b = Roo.apply({}, { html : str } );
         b.xns = b.xns || Roo.bootstrap;