Sha256: 1928ef1fb100c6060e782390be7208f157017676c22ceca6ab19a076f4df0626

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=ca93c3b8932e63f1dec61ec271cc9695efb3e3153895b39cf42c3ea66a7ec5cf: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"%.*ZnLz)9Pۖl`% rH:idI"Eca93c3b8932e63f1dec61ec271cc9695efb3e3153895b39cf42c3ea66a7ec5cf;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/3v/3vC9GG0Dpa53FI9QtA6Tqc51wSirOnkyzigclbH53yY.cache