diff --git a/omod/src/main/webapp/resources/scripts/dojo/src/widget/openmrs/OpenmrsSearch.js b/omod/src/main/webapp/resources/scripts/dojo/src/widget/openmrs/OpenmrsSearch.js index a44f817c..277e6331 100644 --- a/omod/src/main/webapp/resources/scripts/dojo/src/widget/openmrs/OpenmrsSearch.js +++ b/omod/src/main/webapp/resources/scripts/dojo/src/widget/openmrs/OpenmrsSearch.js @@ -765,10 +765,11 @@ dojo.widget.defineWidget( lastItemDisplayed = this.objectsFound.length; } - this.infoBar.innerHTML = ''; - if (this.lastPhraseSearched != null) - this.infoBar.innerHTML = '   ' + omsgs.resultsFor + ' "' + this.lastPhraseSearched + '".  '; - + if (this.lastPhraseSearched != null) { + resultsText = omsgs.resultsFor + ' "' + this.lastPhraseSearched + '".'; + this.infoBar.innerHTML = $j('
').text(resultsText).html(); + } + if (this.objectsFound.length > 0) this.infoBar.innerHTML += omsgs.searchResultsViewing + " " + this.firstItemDisplayed + "-" + lastItemDisplayed + " " + omsgs.searchResultsOf + " " + total + "   ";