Sha256: 918b5b1e15883f147559eef20f832816b3f3af6ca5eec9fb839c4cbc2001dd8e

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

I"$(function() {
  jQuery(function($) {
    var displayConfigureCiMessage, listenToEventSource, updatePage;
    displayConfigureCiMessage = function() {
      var ciConfigured, commits;
      commits = $('.commit');
      ciConfigured = !commits.length || commits.length !== commits.find('div.unknown').length;
      $('.configure-ci').toggleClass('hidden', ciConfigured);
    };
    displayConfigureCiMessage();
    updatePage = function(message) {
      var payload;
      payload = JSON.parse(message.data);
      return $('.layout').load(payload.url + " .layout > *", function() {
        return $('time[data-time-ago]').timeago();
      });
    };
    listenToEventSource = function(url) {
      var reconnect, source;
      source = new EventSource(url);
      reconnect = function() {
        return listenToEventSource(url);
      };
      return source.addEventListener('stack.update', updatePage);
    };
    return $('[data-event-stream]').each(function() {
      return listenToEventSource($(this).data('event-stream'));
    });
  });

}).call(this);
:ET

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
shipit-engine-0.0.1.pre test/dummy/tmp/cache/assets/development/sprockets/v3.0/oH-hbt3vGnTckrMe1K-3JrzfzkfcloPDQ4L0CFn1bwM.cache
shipit-engine-0.0.1.pre test/dummy/tmp/cache/assets/test/sprockets/v3.0/oH-hbt3vGnTckrMe1K-3JrzfzkfcloPDQ4L0CFn1bwM.cache