Roo/form/ComboBox.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 14 Nov 2011 09:46:06 +0000 (17:46 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 14 Nov 2011 09:46:06 +0000 (17:46 +0800)
Roo/form/ComboBox.js

index e283efc..0e39e55 100644 (file)
@@ -302,8 +302,7 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
     editicon: false,
     
     // element that contains real text value.. (when hidden is used..)
-    shadowNameEl : undefined,
-    
+     
     // private
     onRender : function(ct, position){
         Roo.form.ComboBox.superclass.onRender.call(this, ct, position);
@@ -315,12 +314,9 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
                 this.value !== undefined ? this.value : '';
 
             // prevent input submission
-            //if (this.hiddenName == this.name) { 
             this.el.dom.removeAttribute('name');
-            this.shadowNameEl = this.el.insertSibling({tag:'input', type:'hidden', name: this.name}, 'before', true);
-            
-            
-            //}
+             
+             
         }
         if(Roo.isGecko){
             this.el.dom.setAttribute('autocomplete', 'off');
@@ -885,7 +881,6 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
         if(this.el.dom.value.length > 0){
             this.el.dom.value =
                 this.lastSelectionText === undefined ? '' : this.lastSelectionText;
-            this.shadowNameEl ? (this.shadowNameEl.dom.value = this.el.dom.value) : false;
             this.applyEmptyText();
         }
     },