Roo/form/DateField.js
authorChris <chris@roojs.com>
Tue, 19 Mar 2013 10:36:29 +0000 (18:36 +0800)
committerChris <chris@roojs.com>
Tue, 19 Mar 2013 10:36:29 +0000 (18:36 +0800)
Roo/form/DateField.js

index abacd71..c3bd187 100644 (file)
@@ -151,6 +151,7 @@ Roo.extend(Roo.form.DateField, Roo.form.TriggerField,  {
         Roo.form.DateField.superclass.onRender.call(this, ct, position);
         if (this.useIso) {
             this.el.dom.removeAttribute('name'); 
+            this.el.dom.setAttribute('name', this.name + '____hidden___' ); 
             this.hiddenField = this.el.insertSibling({ tag:'input', type:'hidden', name: this.name },
                     'before', true);
             this.hiddenField.value = this.value ? this.formatDate(this.value, 'Y-m-d') : '';