diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/rhctl.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/www/js/rhctl.js b/www/js/rhctl.js index ea7adb8..616042e 100644 --- a/www/js/rhctl.js +++ b/www/js/rhctl.js @@ -131,12 +131,16 @@ function rhctl_draw_state(state) { entry.find('.server-channel').text(value.Channel); } var h = entry.find('.server-health img'); - switch(value.Health) { - case 'alive': - case 'dead': - h.attr('src', '/img/server-' + value.Health + '.png').attr('title', value.Health); - break; - default: + if(value.ResurrectionLevel > 0 && value.ResurrectionLevel < 1) { + h.addClass('blink').attr('src', '/img/server-resurrecting.png').attr('title', 'resurrecting'); + } else { + switch(value.Health) { + case 'alive': + case 'dead': + h.attr('src', '/img/server-' + value.Health + '.png').attr('title', value.Health); + break; + default: + } } srvTable.append(entry) }); |