Sha256: 4e9938cca7832bad069cf34cb5c4f761fba8bf64bea68894f9beb451a27a5ab8

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"resque_web/polling.js;FI"
pathname;TI"R/home/tony/src/resque_web/app/assets/javascripts/resque_web/polling.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+¼ˆRI"length;Ti3I"digest;TI"%dfa26d2f3bc12a5a126d24be7413d366;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"%0671c42208d9bcd49942584670656f5c;FI"
_version;TI"%2cf3622cbba861b85d33ffabfa420c13;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
resque-web-0.0.5 test/dummy/tmp/cache/assets/development/sprockets/a476c44dad10844e0f468821badf02fd
resque-web-0.0.5 test/dummy/tmp/cache/assets/development/sprockets/b6f28ccc1808230b8d7f937253be2112