=== modified file 'dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/message.vm' --- dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/message.vm 2012-10-30 14:02:06 +0000 +++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/message.vm 2012-10-30 15:35:11 +0000 @@ -32,8 +32,8 @@ location.reload(true); }).error(function () { $.mobile.loading( 'show', { - text: 'Unable to send reply, please try again later', - textonly: true + html: '

Unable to send reply, please try again later

', + textVisible: true }); setTimeout( function() { @@ -60,8 +60,8 @@ bindSubmitHandler(); }).error(function () { $.mobile.loading( 'show', { - text: 'Unable to load message, please try again later', - textonly: true + html: '

Unable to load message, please try again later

', + textVisible: true }); setTimeout( function() { === modified file 'dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/messages.vm' --- dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/messages.vm 2012-10-30 14:02:06 +0000 +++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/messages.vm 2012-10-30 15:35:11 +0000 @@ -20,8 +20,8 @@ } }).error(function() { $.mobile.loading( 'show', { - text: 'Unable to get inbox, please try again later', - textonly: true + html: '

Unable to get inbox, please try again later

', + textVisible: true }); setTimeout( function() { === modified file 'dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/new-message.vm' --- dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/new-message.vm 2012-10-30 14:02:06 +0000 +++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/new-message.vm 2012-10-30 15:35:11 +0000 @@ -187,8 +187,8 @@ $.mobile.hidePageLoadingMsg(); }).error(function() { $.mobile.loading( 'show', { - text: 'Unable to search, please try again later', - textonly: true + html: '

Unable to search, please try again later

', + textVisible: true }); setTimeout( function() { @@ -215,8 +215,8 @@ if( !message.subject.length > 0 ) { $.mobile.loading( 'show', { - text: 'Please fill in subject', - textonly: true + html: '

Please fill in subject

', + textVisible: true }); setTimeout( function() { @@ -228,8 +228,8 @@ if( !message.text.length > 0 ) { $.mobile.loading( 'show', { - text: 'Please fill in text', - textonly: true + html: '

Please fill in text

', + textVisible: true }); setTimeout( function() { @@ -257,8 +257,15 @@ }); if( !( message.organisationUnits.length > 0 || message.users.length > 0 || message.userGroups.length > 0 ) ) { - $.mobile.showPageLoadingMsg( $.mobile.pageLoadErrorMessageTheme, "Please add at least one recipient", true ); - setTimeout( $.mobile.hidePageLoadingMsg, 1500 ); + $.mobile.loading( 'show', { + html: '

Please add at least one recipient

', + textVisible: true + }); + + setTimeout( function() { + $.mobile.loading( 'hide' ); + }, 1500); + return false; } @@ -273,8 +280,8 @@ window.location.href = '../messages'; }).error(function() { $.mobile.loading( 'show', { - text: 'Unable to send message, please try again later', - textonly: true + html: '

Unable to send message, please try again later

', + textVisible: true }); setTimeout( function() {