← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8598: minor fix

 

------------------------------------------------------------
revno: 8598
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-10-19 12:45:58 +0200
message:
  minor fix
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-10-19 10:32:59 +0000
+++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/index.vm	2012-10-19 10:45:58 +0000
@@ -1,15 +1,15 @@
 
 <script>
+    $.ajax({
+        url: '../mobile',
+        async: false
+    }).complete(function(e) {
+        if( e.getResponseHeader('Login-Page') ) {
+            document.location = '../mobile';
+        }
+    });
+
     $(document).bind('pagebeforecreate',function(){
-        $.ajax({
-            url: '../mobile',
-            async: false
-        }).complete(function(e) {
-            if( e.getResponseHeader('Login-Page') ) {
-                document.location = '../mobile';
-            }
-        });
-
         $.mobile.showPageLoadingMsg();
 
         $.ajax({