Sha256: c92e2e76f3918cb8f2a808eeffaa7f878c7ac23b29588cbaf478d5b12e624d6c

Contents?: true

Size: 998 Bytes

Versions: 6

Compression:

Stored size: 998 Bytes

Contents

I"Ú(function() {
  jQuery(function() {
    var format_toggler, relatizer;
    relatizer = function() {
      var dt, relatized;
      dt = $(this).text();
      $(this).relativeDate();
      relatized = $(this).text();
      if ($(this).parents("a").size() > 0 || $(this).is("a")) {
        $(this).relativeDate();
        if (!$(this).attr("title")) {
          return $(this).attr("title", dt);
        }
      } else {
        return $(this).html("<a href='#'' class='toggle_format' title='" + dt + "'>\n  <span class='date_time'>" + dt + "</span>\n  <span class='relatized_time'>" + relatized + "</span>\n</a>");
      }
    };
    format_toggler = function(e) {
      e.preventDefault();
      $(".time a.toggle_format span").toggle();
      return $(this).attr("title", $("span:hidden", this).text());
    };
    $(".time").each(relatizer);
    $(".time a.toggle_format .date_time").hide();
    return $(".time").on("click", "a.toggle_format", format_toggler);
  });

}).call(this);
:ET

Version data entries

6 entries across 4 versions & 1 rubygems

Version Path
resque-web-0.0.10 test/dummy/tmp/cache/assets/sprockets/v3.0/-J/-J3tVeBXmGzOVGpk9VI1f-NcC9Vsa73JR25YlpGERfg.cache
resque-web-0.0.10 test/dummy/tmp/cache/assets/test/sprockets/v3.0/-J/-J3tVeBXmGzOVGpk9VI1f-NcC9Vsa73JR25YlpGERfg.cache
resque-web-0.0.9 test/dummy/tmp/cache/assets/sprockets/v3.0/zF/zF1AE0A3qJcJbBKj3aVEIYp_lCC0X3HuAmKEtEiBml4.cache
resque-web-0.0.8 test/dummy/tmp/cache/assets/test/sprockets/v3.0/oopF0dYYxa83x7cRFKOkC8vEERY7fy5kHQyTnfRP2bQ.cache
resque-web-0.0.8 test/dummy/tmp/cache/assets/test/sprockets/v3.0/zF1AE0A3qJcJbBKj3aVEIYp_lCC0X3HuAmKEtEiBml4.cache
resque-web-0.0.7 test/dummy/tmp/cache/assets/test/sprockets/v3.0/oopF0dYYxa83x7cRFKOkC8vEERY7fy5kHQyTnfRP2bQ.cache