mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge branch 'master' of github.com:mperham/sidekiq
This commit is contained in:
commit
8060cac909
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,8 @@ $(function() {
|
|||
});
|
||||
|
||||
$(function() {
|
||||
function pad(n) { return ('0' + n).slice(-2); }
|
||||
|
||||
$('a[name=poll]').data('polling', false);
|
||||
|
||||
$('a[name=poll]').on('click', function(e) {
|
||||
|
@ -39,7 +41,7 @@ $(function() {
|
|||
$('.workers').replaceWith(responseHtml.find('.workers'));
|
||||
});
|
||||
var currentTime = new Date();
|
||||
$('.poll-status').text('Last polled at: ' + currentTime.getHours() + ':' + currentTime.getMinutes() + ':' + currentTime.getSeconds());
|
||||
$('.poll-status').text('Last polled at: ' + currentTime.getHours() + ':' + pad(currentTime.getMinutes()) + ':' + pad(currentTime.getSeconds()));
|
||||
}, 2000));
|
||||
$('.poll-status').text('Starting to poll...');
|
||||
pollLink.text('Stop Polling');
|
||||
|
|
Loading…
Add table
Reference in a new issue