dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #12630
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3930: It should be allow to enter 255 characters instead of limiting in 254.
------------------------------------------------------------
revno: 3930
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-06-17 16:29:13 +0700
message:
It should be allow to enter 255 characters instead of limiting in 254.
modified:
dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js 2011-06-17 09:07:15 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js 2011-06-17 09:29:13 +0000
@@ -120,22 +120,22 @@
field.value = (field.value.indexOf(".") == -1) ? "0" : "0.0";
}
- else if ( type == 'int' && ( !isInt( field.value ) || ( field.value.length >= 255 ) ) )
+ else if ( type == 'int' && ( !isInt( field.value ) || ( field.value.length > 255 ) ) )
{
window.alert( i18n_value_must_integer + '\n\n' + dataElementName );
return alertField( field );
}
- else if ( type == 'number' && ( !isRealNumber( field.value ) || ( field.value.length >= 255 ) ) )
+ else if ( type == 'number' && ( !isRealNumber( field.value ) || ( field.value.length > 255 ) ) )
{
window.alert( i18n_value_must_number + '\n\n' + dataElementName );
return alertField( field );
}
- else if ( type == 'positiveNumber' && ( !isPositiveInt( field.value ) || ( field.value.length >= 255 ) ) )
+ else if ( type == 'positiveNumber' && ( !isPositiveInt( field.value ) || ( field.value.length > 255 ) ) )
{
window.alert( i18n_value_must_positive_integer + '\n\n' + dataElementName );
return alertField( field );
}
- else if ( type == 'negativeNumber' && ( !isNegativeInt( field.value ) || ( field.value.length >= 255 ) ) )
+ else if ( type == 'negativeNumber' && ( !isNegativeInt( field.value ) || ( field.value.length > 255 ) ) )
{
window.alert( i18n_value_must_negative_integer + '\n\n' + dataElementName );
return alertField( field );