From 8422b5ff91dc824f75d73e22671f6a57c21b5a18 Mon Sep 17 00:00:00 2001 From: Carlos Pacha Date: Tue, 1 Feb 2011 19:56:24 +0000 Subject: [PATCH] it's related about 4553 bug --- gulliver/js/grid/core/grid.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulliver/js/grid/core/grid.js b/gulliver/js/grid/core/grid.js index 4b21bd084..96fabdb64 100644 --- a/gulliver/js/grid/core/grid.js +++ b/gulliver/js/grid/core/grid.js @@ -172,11 +172,13 @@ var G_Grid = function(oForm, sGridName) { } tags = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('a'); - if( tags.length == 0 ){ //then it is a datepicker + if( tags.length == 0 ){ //then it is not a datepicker scriptTags = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('script'); attributes = elementAttributesNS(aObjects[0], 'pm'); if(attributes.defaultvalue!= undefined) attributDefaultValue=attributes.defaultvalue; + } else { + attributDefaultValue=''; } if (aObjects[0].type != 'checkbox' ) {