From abc0c7de1dc3392a59c93222095cf1adb2c912cc Mon Sep 17 00:00:00 2001 From: Alvaro Campos Date: Mon, 7 Feb 2011 20:13:21 +0000 Subject: [PATCH] campos con valor por defecto en grillas funcionando --- gulliver/js/grid/core/grid.js | 6 +++--- gulliver/system/class.xmlform.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gulliver/js/grid/core/grid.js b/gulliver/js/grid/core/grid.js index 770a6d8b9..8fda8c4c3 100644 --- a/gulliver/js/grid/core/grid.js +++ b/gulliver/js/grid/core/grid.js @@ -179,9 +179,9 @@ var G_Grid = function(oForm, sGridName) { attributDefaultValue=attributes.defaultvalue; } else { scriptTags = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('script'); - attributes = elementAttributesNS(aObjects[0]); - if(attributes.value != undefined) - attributDefaultValue=attributes.value; + attributes = elementAttributesNS(aObjects[0],'pm'); + if(attributes.defaultvalue != undefined) + attributDefaultValue=attributes.defaultvalue; else attributDefaultValue=''; } diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 369303018..cea1a8271 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -3142,13 +3142,13 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText $sizeend = $maskleng + 2; } if ( $this->editable != "0") { - $html = '' + $html = '' . ' ' . '' . '' . ''; } else { - $html = '' + $html = '' . ' ' . '' . ''