=== 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-21 15:54:35 +0000 +++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/index.vm 2012-10-21 22:11:28 +0000 @@ -30,12 +30,9 @@ $(document).bind('pagebeforecreate',function(){ $.mobile.showPageLoadingMsg(); - getDashboard().then( - fm.getMetaData().then( - fm.uploadDataValueSets()).always(function() { + getDashboard().always(function() { $('section[data-role="content"] ul').listview('refresh'); - $.mobile.hidePageLoadingMsg(); - })); + }).then( fm.getMetaData().then( fm.uploadDataValueSets()).always( $.mobile.hidePageLoadingMsg )); })