dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #05005
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1673: Change to use try..catch clause for checking localed code for jquery validation error messages, s...
------------------------------------------------------------
revno: 1673
committer: Viet <Viet@Viet-Nguyen>
branch nick: trunk
timestamp: Fri 2010-03-19 16:55:38 +0530
message:
Change to use try..catch clause for checking localed code for jquery validation error messages, should be more effective. Tested in IE8 and Firefox
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.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-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js 2010-03-19 11:00:02 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js 2010-03-19 11:25:38 +0000
@@ -1069,8 +1069,9 @@
//--------------------------------------------------
loadLocaled : function(code)
{
- this.messages = eval(code);
- if( !this.messages )
+ try {
+ this.messages = eval(code);
+ }catch(e)
{
this.messages = eval("en_GB");
}