Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Tue, 1 Apr 2014 11:13:38 +0000 (19:13 +0800)
committerEdward <edward@roojs.com>
Tue, 1 Apr 2014 11:13:38 +0000 (19:13 +0800)
Roo/bootstrap/Button.js

index 2e7015f..a9b230a 100644 (file)
@@ -67,6 +67,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     defaulton: true,
     preventDefault : true,
     removeClass : false,
+    name : false,
     
     getAutoCreate : function(){
         
@@ -236,6 +237,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             cfg.cls = '';
         }
         
+        if(this.name){
+            cfg.name = this.name;
+        }
+        
         return cfg;
     },
     initEvents: function() {