← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14835: more offline fixes, check for 500 status

 

------------------------------------------------------------
revno: 14835
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-04-14 14:59:24 +0700
message:
  more offline fixes, check for 500 status
modified:
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.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/form.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2014-04-03 12:01:11 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js	2014-04-14 07:59:24 +0000
@@ -301,7 +301,7 @@
             },
             error: function( jqXHR, textStatus, errorThrown )
             {
-            	if ( 409 == xhr.status ) // Invalid value or locked
+            	if ( 409 == xhr.status || 500 == xhr.status ) // Invalid value or locked
             	{
             		// Ignore value for now TODO needs better handling for locking
             		
@@ -362,7 +362,7 @@
             },
             error: function( xhr, textStatus, errorThrown )
             {
-            	if ( 409 == xhr.status ) // Invalid value or locked
+            	if ( 409 == xhr.status || 500 == xhr.status ) // Invalid value or locked
             	{
             		// Ignore value for now TODO needs better handling for locking
             		
@@ -1604,7 +1604,7 @@
 	        },
 		    error:  function( xhr, textStatus, errorThrown )
 		    {
-		    	if ( 409 == xhr.status ) // Invalid value or locked
+		    	if ( 409 == xhr.status || 500 == xhr.status ) // Invalid value or locked
 	        	{
 	        		setHeaderMessage( xhr.responseText );
 	        	}
@@ -1653,7 +1653,7 @@
         },
         error: function( xhr, textStatus, errorThrown )
         {
-        	if ( 409 == xhr.status ) // Invalid value or locked
+        	if ( 409 == xhr.status || 500 == xhr.status ) // Invalid value or locked
         	{
         		setHeaderMessage( xhr.responseText );
         	}