------------------------------------------------------------
revno: 14834
committer: Morten Olav Hansen <[email protected]>
branch nick: dhis2
timestamp: Mon 2014-04-14 14:47:26 +0700
message:
  don't assume offline if server returns 500, it means that something happened 
while saving the value, not that the system is offline
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	2014-02-11 15:34:53 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js	2014-04-14 07:47:26 +0000
@@ -324,7 +324,7 @@
 
     function handleError( xhr, textStatus, errorThrown )
     {
-    	if ( 409 == xhr.status ) // Invalid value or locked
+    	if ( 409 == xhr.status || 500 == xhr.status ) // Invalid value or locked
     	{
     		markValue( fieldId, COLOR_RED );
     		setHeaderMessage( xhr.responseText );

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to