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:
parent
1e9d069a19
commit
8eb46312cb
@ -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"/>';
|
||||
|
Loading…
Reference in New Issue
Block a user