From 216c30e687e36c65a202faad0c9451754c62c3db Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Tue, 15 Feb 2011 14:59:05 +0000 Subject: [PATCH] Adjustment in the event uppercase and lowercase Grids --- gulliver/js/grid/core/grid.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gulliver/js/grid/core/grid.js b/gulliver/js/grid/core/grid.js index 60e44d69b..b6eb642bb 100644 --- a/gulliver/js/grid/core/grid.js +++ b/gulliver/js/grid/core/grid.js @@ -22,6 +22,9 @@ var G_Grid = function(oForm, sGridName) { this.aElements.push(new G_Text(oForm, document.getElementById('form[' + this.sGridName + '][' + j + '][' + this.aFields[i].sFieldName + ']'), this.sGridName + '][' + j + '][' + this.aFields[i].sFieldName)); this.aElements[this.aElements.length - 1].validate = this.aFields[i].oProperties.validate; + if(this.aFields[i].oProperties.strTo) { + this.aElements[this.aElements.length - 1].strTo = this.aFields[i].oProperties.strTo; + } if (aFields[i].oProperties) { this.aElements[this.aElements.length - 1].mask = aFields[i].oProperties.mask; } @@ -469,6 +472,9 @@ var G_Grid = function(oForm, sGridName) { case 'text': this.aElements.push(new G_Text(oForm, document.getElementById('form[' + this.sGridName + '][' + j + '][' + this.aFields[i].sFieldName + ']'), this.sGridName + '][' + j + '][' + this.aFields[i].sFieldName)); this.aElements[this.aElements.length - 1].validate = this.aFields[i].oProperties.validate; + if(this.aFields[i].oProperties.strTo) { + this.aElements[this.aElements.length - 1].strTo = this.aFields[i].oProperties.strTo; + } break; case 'currency': this.aElements.push(new G_Currency(oForm, document.getElementById('form[' + this.sGridName + '][' + j + '][' + this.aFields[i].sFieldName + ']'), this.sGridName + '][' + j + ']['+ this.aFields[i].sFieldName)); @@ -840,6 +846,9 @@ var G_Grid = function(oForm, sGridName) { case 'text': this.aElements.push(new G_Text(oForm, document.getElementById('form[' + this.sGridName + '][' + j + '][' + this.aFields[i].sFieldName + ']'), this.sGridName + '][' + j + '][' + this.aFields[i].sFieldName)); this.aElements[this.aElements.length - 1].validate = this.aFields[i].oProperties.validate; + if(this.aFields[i].oProperties.strTo) { + this.aElements[this.aElements.length - 1].strTo = this.aFields[i].oProperties.strTo; + } break; case 'currency': this.aElements.push(new G_Currency(oForm, document.getElementById('form[' + this.sGridName + '][' + j + '][' + this.aFields[i].sFieldName + ']'), this.sGridName + '][' + j + ']['+ this.aFields[i].sFieldName));