mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Don't pollute the global namespace.
This commit is contained in:
parent
a239f5882e
commit
2b74cef634
1 changed files with 6 additions and 6 deletions
|
@ -20,12 +20,12 @@ $(function() {
|
||||||
|
|
||||||
$('a[name=poll]').data('polling', false);
|
$('a[name=poll]').data('polling', false);
|
||||||
|
|
||||||
pollStatus = $('.poll-status')
|
var pollStatus = $('.poll-status');
|
||||||
|
|
||||||
pollStatusText = pollStatus.find('.text')
|
var pollStatusText = pollStatus.find('.text');
|
||||||
pollStatusBadge = pollStatus.find('.badge')
|
var pollStatusBadge = pollStatus.find('.badge');
|
||||||
pollStatusBadge.hide();
|
pollStatusBadge.hide();
|
||||||
pollStatusMarkup = pollStatus.html();
|
var pollStatusMarkup = pollStatus.html();
|
||||||
|
|
||||||
$('a[name=poll]').on('click', function(e) {
|
$('a[name=poll]').on('click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -70,9 +70,9 @@ $(function() {
|
||||||
$('time').timeago();
|
$('time').timeago();
|
||||||
});
|
});
|
||||||
var currentTime = new Date();
|
var currentTime = new Date();
|
||||||
$('.poll-status .text').text('Last polled: ')
|
$('.poll-status .text').text('Last polled: ');
|
||||||
$('.poll-status .time').show().text(currentTime.getHours() + ':' + pad(currentTime.getMinutes()) + ':' + pad(currentTime.getSeconds()));
|
$('.poll-status .time').show().text(currentTime.getHours() + ':' + pad(currentTime.getMinutes()) + ':' + pad(currentTime.getSeconds()));
|
||||||
}
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
Loading…
Reference in a new issue