Sha256: f35ba66299ba0c1bb28a405663ebb90c0799146ac0e36a4804dba8480124723b

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

{I"
class:ETI"ProcessedAsset;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"%70be51a56f263728a0d81f74849aeeb9;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"dependency_digest;TI"%9f8de5a49905f0b2cc9d1f567416e839;FI"required_paths;T[I"R/home/tony/src/resque_web/app/assets/javascripts/resque_web/polling.js.coffee;FI"dependency_paths;T[{I"	path;TI"R/home/tony/src/resque_web/app/assets/javascripts/resque_web/polling.js.coffee;FI"
mtime;TI"2014-01-03T05:44:06+09:00;TI"digest;TI"%c3d5c22c10ddb03c383eb5c2ccbfe9dc;FI"
_version;TI"%1005ed9f20e25fb0a0599a7017dd0e6b;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
resque-web-0.0.5 test/dummy/tmp/cache/assets/test/sprockets/492baca6c94c6497c4cd84a8be19c680
resque-web-0.0.5 test/dummy/tmp/cache/assets/test/sprockets/a476c44dad10844e0f468821badf02fd