=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2013-09-03 18:28:38 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2013-09-05 09:24:48 +0000 @@ -1830,20 +1830,19 @@ { var html = '', isComplete = false; - + if ( isDefined( notifications ) && notifications.length ) { $.each( notifications, function( i, notification ) { var first = i == 0, - loaderHtml = ''; - - if ( notification.completed == "true" ) - { - isComplete = true; - } - - if ( first ) + loaderHtml = ''; + + if( notification.completed === "true" || notification.completed === true ) { + isComplete = true; + } + + if ( first ) { $( '#' + tableId ).prop( 'lastUid', notification.uid ); loaderHtml = _loading_bar_html; @@ -1853,7 +1852,7 @@ var time = ( undefined != notification.time ) ? notification.time.replace( 'T', ' ' ).substring( 0, 19 ) : ''; html += '' + time + '' + notification.message + '  '; - html += notification.completed == 'true' ? '' : loaderHtml; + html += isComplete ? '' : loaderHtml; html += ''; } );