Sha256: ff0442c74a0f05b95061ade92f1f0bcaf64dd9a92de205279426430196eeeb22

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"resque_web/polling.js;FI"
pathname;TI"S/Users/tony/src/resque-web/app/assets/javascripts/resque_web/polling.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+±Â/SI"length;Ti3I"digest;TI"%2b8bcb6474e893868c0baca85d645708;FI"source;TI"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);
;TI"required_assets_digest;TI"%5d0a8ffb70ed204d5d61746a265ff4e8;FI"
_version;TI"%a56df69ef97ba4d9f1a23bf9b0add58a;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
resque-web-0.0.8 test/dummy/tmp/cache/assets/development/sprockets/054948969ee6a8b7f4f285c135d2927e
resque-web-0.0.8 test/dummy/tmp/cache/assets/development/sprockets/bbb31c0c0e175375d4446f473472b2ae
resque-web-0.0.7 test/dummy/tmp/cache/assets/development/sprockets/054948969ee6a8b7f4f285c135d2927e
resque-web-0.0.7 test/dummy/tmp/cache/assets/development/sprockets/bbb31c0c0e175375d4446f473472b2ae