Roo/form/ComboBoxArray.js
authorAlan Knowles <alan@roojs.com>
Wed, 2 May 2012 04:21:15 +0000 (12:21 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 2 May 2012 04:21:15 +0000 (12:21 +0800)
Roo/form/ComboBoxArray.js

index cc95abd..294c0c3 100644 (file)
@@ -32,6 +32,10 @@ Roo.form.ComboBoxArray = function(config)
         // add to list
         
     });
+    if (!this.hiddenListName && this.hiddenName) {
+        this.hiddenListName = this.hiddenName + '-list';
+    }
+    
     
 }
  
@@ -53,7 +57,9 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.ComboBox,
     tipField : 'email',
     
     renderer : false,
-    
+     /**
+     * @cfg {String} idField The field to take the hidden 'id' data from
+     */
     hiddenName : false, // set this if you want a , sperated list of values in it for form posting..
     hiddenListName : false,
     hiddenEl : false,
@@ -75,7 +81,8 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.ComboBox,
         var cbwrap = this.wrap.createChild(
             {tag: 'div', cls: 'x-cbarray-cb'},
             this.el.dom
-        );  
+        );
+        
         if (this.hiddenListName) {
              
             this.hiddenEl = this.wrap.createChild({