1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Added timeago to polling mode.

This commit is contained in:
Dmitry Krasnoukhov 2012-08-24 00:20:41 +03:00
parent ad71787f5b
commit 7d3e37e9f8

View file

@ -39,6 +39,7 @@ $(function() {
var responseHtml = $(data);
$('.hero-unit').replaceWith(responseHtml.find('.hero-unit'));
$('.workers').replaceWith(responseHtml.find('.workers'));
$('time').timeago();
});
var currentTime = new Date();
$('.poll-status').text('Last polled at: ' + currentTime.getHours() + ':' + pad(currentTime.getMinutes()) + ':' + pad(currentTime.getSeconds()));