We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01781dc commit 92ac0e5Copy full SHA for 92ac0e5
lib/resque/server/public/ranger.js
@@ -35,9 +35,9 @@ $(function() {
35
return false
36
})
37
38
- $('a[rel=poll]').click(function() {
39
- var href = $(this).attr('href')
40
- $(this).parent().text('Starting...')
+ var poll_start = function(el) {
+ var href = el.attr('href')
+ el.parent().text('Starting...')
41
$("#main").addClass('polling')
42
43
setInterval(function() {
@@ -47,8 +47,14 @@ $(function() {
47
}})
48
}, poll_interval * 1000)
49
50
+ location.hash = '#poll'
51
+
52
- })
53
+ };
54
55
+ if (location.hash == '#poll') poll_start($('a[rel=poll]'))
56
57
+ $('a[rel=poll]').click(function() { return poll_start($(this)) })
58
59
$('ul.failed li').hover(function() {
60
$(this).addClass('hover');
0 commit comments