FELIX-2120 Apply patch by Valentin Valchev (thanks).

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@918450 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/ui/obr.js b/webconsole/src/main/resources/res/ui/obr.js
index 53e532b..c770d71 100644
--- a/webconsole/src/main/resources/res/ui/obr.js
+++ b/webconsole/src/main/resources/res/ui/obr.js
@@ -20,6 +20,7 @@
 var addRepoUri = false;
 var resTable = false;
 var searchField = false;
+var ifStatusOK = false;
 
 /* displays a date in the user's local timezone */
 function localTm(time) {
@@ -98,11 +99,13 @@
 	resTable.empty();
 	if ( data.status ) {
 		$('.statline').html(i18n.status_ok);
+		ifStatusOK.removeClass('ui-helper-hidden');
 		for (var i in data.repositories ) {
 			renderRepository( data.repositories[i] );
 		}
 	} else {
 		$('.statline').html(i18n.status_no);
+		ifStatusOK.addClass('ui-helper-hidden');
 	}
 }
 
@@ -112,6 +115,7 @@
 	addRepoUri = $('#addRepoUri');
 	resTable = $('#resTable tbody').empty();
 	searchField = $('#searchField');
+	ifStatusOK = $('#ifStatusOK');
 
 	$('#addRepoBtn').click(function() {
 		doRepoAction('add', addRepoUri.val());