Sha256: 0cbec044669c16bb0bc32016a61c850ea2eadf55aeca3bba1f67b6ada587d032

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

$(function() {
  $('.time').relatizeDate()
  $('.backtrace').click(function() {
    $(this).next().toggle()
    return false
  })
  
  $('a[rel=poll]').click(function() {
    var href = $(this).attr('href')
    $(this).parent().text('Starting...')
    $("#main").addClass('polling')
    setInterval(function() {
      $.ajax({dataType:'text', type:'get', url:href, success:function(data) { 
        $('#main').html(data) 
        $('#main .time').relatizeDate()
      }})
    }, 2 * 1000)
    return false
  })
    
})

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jerefrer-resque-1.1.0 lib/resque/server/public/ranger.js
resque-1.1.0 lib/resque/server/public/ranger.js