=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js 2010-03-11 11:56:49 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js 2010-03-11 12:12:36 +0000 @@ -368,6 +368,10 @@ return htmlEncode( document.getElementById( fieldId ).value ); } +// ----------------------------------------------------------------------------- +// Message, warning, info, headerMessage +// ----------------------------------------------------------------------------- + /** * Shows the message span and sets the message as text. * @@ -440,6 +444,15 @@ } /** + * Sets the header message and hides it after 3 seconds. + */ +function setHeaderDelayMessage( message ) +{ + setHeaderMessage( message ); + setTimeout( "hideHeaderMessage();", 3000 ); +} + +/** * Hides the header message div. */ function hideHeaderMessage() === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/chart.js' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/chart.js 2010-03-11 11:56:49 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/chart.js 2010-03-11 12:12:36 +0000 @@ -7,7 +7,7 @@ function runAndViewChart( chartId ) { - setHeaderWaitMessage( "Please wait" ); + setHeaderWaitMessage( i18n_please_wait ); tempChartId = chartId;