1
0
Fork 0
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:
Tyson Tate 2012-11-02 11:19:45 -07:00
parent a239f5882e
commit 2b74cef634

View file

@ -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() {