← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9376: changed to POST for online/offline detection

 

------------------------------------------------------------
revno: 9376
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-12-20 11:35:38 +0100
message:
  changed to POST for online/offline detection
modified:
  dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/index.vm


--
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-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/index.vm'
--- dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/index.vm	2012-12-20 09:49:00 +0000
+++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/index.vm	2012-12-20 10:35:38 +0000
@@ -7,7 +7,8 @@
 
     function checkOnlineStatus() {
         return $.ajax({
-            url: '$contextPath/mobile'
+            url: '$contextPath/mobile',
+            type: 'POST'
         }).error(function() {
            onlineStatus = false;
            loggedInStatus = false;
@@ -18,7 +19,7 @@
             $('body').trigger('dhis2.online');
         }).complete(function() {
             if( onlineStatus && !loggedInStatus ) {
-                document.location = '../mobile';
+                document.location = '$contextPath/mobile';
             }
         });
     }