← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4457: timeout for setorgunit

 

------------------------------------------------------------
revno: 4457
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-08-26 14:38:27 +0200
message:
  timeout for setorgunit
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.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/ouwt/ouwt.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2011-08-25 09:02:12 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2011-08-26 12:38:27 +0000
@@ -298,9 +298,15 @@
             {
                 sessionStorage[getTagId( "Selected" )] = unitId;
 
-                $.post( organisationUnitTreePath + "setorgunit.action", {
-                    id : unitId
-                } ).complete( this.responseReceived );
+                $.ajax({
+                    url: organisationUnitTreePath + "setorgunit.action",
+                    data: {
+                        id : unitId
+                    },
+                    type: 'POST',
+                    timeout: 5000,
+                    complete: this.responseReceived
+                });
 
                 $( "#orgUnitTree" ).find( "a" ).removeClass( "selected" );
                 $linkTag.addClass( "selected" );