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:
parent
ad71787f5b
commit
7d3e37e9f8
1 changed files with 1 additions and 0 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Reference in a new issue