Sha256: 29d03a42855a14deefc4dc6b55f73d2dff10282b3b6fb300e050458b3fce4eae

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

{:uriI"file:///Users/kirillplatonov/Code/resque-web/app/assets/javascripts/resque_web/polling.js.coffee?type=application/javascript&pipeline=self&id=67e4a63566b20c463f9f60d416fe850e968dfe5e471b9a49859260694a9eed36:ET:load_pathI"A/Users/kirillplatonov/Code/resque-web/app/assets/javascripts;T:
filenameI"^/Users/kirillplatonov/Code/resque-web/app/assets/javascripts/resque_web/polling.js.coffee;T:	nameI"resque_web/polling;T:logical_pathI"resque_web/polling.self.js;T:content_typeI"application/javascript;T:sourceI"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);
;T:
metadata{:dependencieso:Set:
@hash{
I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"lfile-digest:///Users/kirillplatonov/Code/resque-web/app/assets/javascripts/resque_web/polling.js.coffee;TT:
requiredo;;{:stubbedo;;{:
linkso;;{:charsetI"
utf-8;F:digest"%P.v$wm4n^~#4d`Hu:lengthi3:dependencies_digest"%kbI&ոanc"5VcV"A:idI"E67e4a63566b20c463f9f60d416fe850e968dfe5e471b9a49859260694a9eed36;F:
mtimel+gX

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resque-web-0.0.10 test/dummy/tmp/cache/assets/sprockets/v3.0/5S/5S27D62CGbczHO_r5QEU8ES8YCsTZDN0YxPC5DqAUNk.cache