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

Update status indicators when polling

This commit is contained in:
Nate Matykiewicz 2015-10-05 09:42:27 -05:00
parent d1ed79d29a
commit ca235206b9

View file

@ -58,9 +58,17 @@ function updatePage(url) {
url: url,
dataType: 'html'
}).done(function (data) {
var $page = $(data).filter('#page')
$data = $(data)
var $page = $data.filter('#page')
$('#page').replaceWith($page)
var $header_status = $data.find('.status')
$('.status').replaceWith($header_status)
var $favicon = $data.filter('link[rel$="icon"]')
$('link[rel$="icon"]').replaceWith($favicon)
$("time").timeago()
})
}, parseInt(localStorage.timeInterval) || 2000);