← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15830: Fixed bug - Exception thrown when to save coordinates of an event in case entry form.

 

------------------------------------------------------------
revno: 15830
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-06-24 20:38:54 +0800
message:
  Fixed bug - Exception thrown when to save coordinates of an event in case entry form.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js	2014-06-19 13:44:22 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js	2014-06-24 12:38:54 +0000
@@ -1921,4 +1921,3 @@
 	$('#completedTB [id=tr1_' + programInstanceId + ']').remove();
 	$('#completedTB [id=tr2_' + programInstanceId + ']').remove();
 }
-

=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2014-06-19 09:24:54 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2014-06-24 12:38:54 +0000
@@ -1254,3 +1254,9 @@
         $( '#sec_' + value ).show();
     }
 }
+
+function isNumber( value )
+{
+	var regex = /^(-?0|-?[1-9]\d*)(\.\d+)?(E\d+)?$/;
+	return regex.test( value );
+}