Fix message formatting on zuul status.

The message contains HTML already and doesn't need <b> tags.
Properly remove the message when no longer needed.

Change-Id: I2a2495465a71198e0efb3beca7c8ccdf71fe3653
Reviewed-on: https://review.openstack.org/18604
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2012-12-23 10:00:10 -08:00 committed by Jenkins
parent 1e9d069a19
commit 8eb46312cb

View File

@ -93,9 +93,10 @@ function update() {
$.getJSON('http://zuul.openstack.org/status.json', function(data) {
if ('message' in data) {
$("#message-container").attr('class', 'topMessage');
$("#message").html('<b>'+data['message']+'</b>');
$("#message").html(data['message']);
} else {
$("#message-container").removeClass('topMessage');
$("#message").html('');
}
html += '<br style="clear:both"/>';