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());
diff --git a/webconsole/src/main/resources/templates/obr.html b/webconsole/src/main/resources/templates/obr.html
index 12eb3bf..4cc686d 100644
--- a/webconsole/src/main/resources/templates/obr.html
+++ b/webconsole/src/main/resources/templates/obr.html
@@ -10,6 +10,8 @@
 
 <p class="statline">${obr.status.ok}</p>
 
+<div id="ifStatusOK" class="ui-helper-hidden">
+
 <div class="ui-widget-header ui-corner-top buttonGroup">
 	<span style="float: left; margin-left: 1em">${obr.repo.title}</span>
 	<input style="width: 50%" type="text" id="addRepoUri" />
@@ -65,4 +67,6 @@
 	</table>
 </form>
 
-<br/>
\ No newline at end of file
+<br/>
+
+</div> <!-- ifStatusOK -->
\ No newline at end of file