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