Sha256: c66f4deb22b13878ac3f78d6b0fcac68e8427abdd96a98a7f1a1e8c1436af933

Contents?: true

Size: 831 Bytes

Versions: 6

Compression:

Stored size: 831 Bytes

Contents

I"3(function() {
  jQuery(function() {
    var poll_interval, poll_start;
    poll_interval = 2;
    poll_start = function(el) {
      var href;
      href = el.attr("href");
      el.parent().text("Starting...");
      $("#main").addClass("polling");
      setInterval((function() {
        return $.ajax({
          dataType: "text",
          type: "get",
          url: href,
          success: function(data) {
            $("#main").html(data);
            return $("#main .time").relativeDate();
          }
        });
      }), poll_interval * 1000);
      return location.hash = "#poll";
    };
    if (location.hash === "#poll") {
      poll_start($("a[rel=poll]"));
    }
    return $("a[rel=poll]").click(function(e) {
      e.preventDefault();
      return poll_start($(this));
    });
  });

}).call(this);
:ET

Version data entries

6 entries across 4 versions & 1 rubygems

Version Path
resque-web-0.0.10 test/dummy/tmp/cache/assets/sprockets/v3.0/H3/H3kAbWZ2myz9_Ym1Qg4wu6Bgab2pTAVaXQGH33RyVNU.cache
resque-web-0.0.10 test/dummy/tmp/cache/assets/test/sprockets/v3.0/H3/H3kAbWZ2myz9_Ym1Qg4wu6Bgab2pTAVaXQGH33RyVNU.cache
resque-web-0.0.9 test/dummy/tmp/cache/assets/sprockets/v3.0/5V/5VMJbrY_JVstKoCleabhRux7Wh-LpUyYSvjoH0CrY3c.cache
resque-web-0.0.8 test/dummy/tmp/cache/assets/test/sprockets/v3.0/5VMJbrY_JVstKoCleabhRux7Wh-LpUyYSvjoH0CrY3c.cache
resque-web-0.0.8 test/dummy/tmp/cache/assets/test/sprockets/v3.0/yuMFKRwmdmqpYCL23nCp_tewz2QvXFzxhm4w79Y5LeQ.cache
resque-web-0.0.7 test/dummy/tmp/cache/assets/test/sprockets/v3.0/yuMFKRwmdmqpYCL23nCp_tewz2QvXFzxhm4w79Y5LeQ.cache