test/dummy/tmp/cache/assets/test/sprockets/267d0243760c55e0ff8039158fbfa98d in resque-web-0.0.4 vs test/dummy/tmp/cache/assets/test/sprockets/267d0243760c55e0ff8039158fbfa98d in resque-web-0.0.5
- old
+ new
@@ -1,8 +1,8 @@
{I"
class:ETI"BundledAsset; FI"logical_path; TI"resque_web/application.js; TI"
pathname; TI"O/home/tony/src/resque_web/app/assets/javascripts/resque_web/application.js; FI"content_type; TI"application/javascript; TI"
-mtime; Tl+[ùRI"length; Ti’nI"digest; TI"%c4b0508c5c9ccd5998fd8f39b4c4120a; FI"source; TI"’n/*!
+mtime; Tl+·ÛÉRI"length; TiPmI"digest; TI"%ac7a2768be190fb6fb56528bbb9c81d2; FI"source; TI"Pm/*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
@@ -12503,10 +12503,22 @@
$(".tooltip").tooltip();
return $("a[rel=tooltip]").tooltip();
});
}).call(this);
+(function() {
+ jQuery(function() {
+ $(".backtrace").click(function(e) {
+ e.preventDefault();
+ return $(this).next().toggle();
+ });
+ return $("ul.failed li").hover(function() {
+ return $(this).toggleClass("hover");
+ });
+ });
+
+}).call(this);
/**
* jQ plugin adapted from 37s' relative date tool
* Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
* @see http://37signals.com/svn/posts/1557-javascript-makes-relative-times-compatible-with-caching
*/
@@ -12551,10 +12563,70 @@
$(this).html(time_ago_in_words_with_parsing(date_str));
});
};
})(jQuery, window);
+(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);
+(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);
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
@@ -12567,96 +12639,7 @@
//
-
-$(function() {
- var poll_interval = 2
-
- var relatizer = function(){
- var dt = $(this).text();
- $(this).relativeDate();
- var relatized = $(this).text();
-
- if ($(this).parents("a").length > 0 || $(this).is("a")) {
- $(this).relativeDate()
- if (!$(this).attr('title')) {
- $(this).attr('title', dt)
- }
- } else {
- $(this)
- .text('')
- .append( $('<a href="#" class="toggle_format" title="' + dt + '" />')
- .append('<span class="date_time">' + dt +
- '</span><span class="relatized_time">' +
- relatized + '</span>') )
- }
- };
-
- $('.time').each(relatizer);
-
- $('.time a.toggle_format .date_time').hide()
-
- var format_toggler = function(){
- $('.time a.toggle_format span').toggle()
- $(this).attr('title', $('span:hidden',this).text())
- return false
- };
-
- $('.time a.toggle_format').click(format_toggler);
-
- $('.backtrace').click(function() {
- $(this).next().toggle()
- return false
- })
-
- var poll_start = function(el) {
- var href = el.attr('href')
- el.parent().text('Starting...')
- $("#main").addClass('polling')
-
- setInterval(function() {
- $.ajax({dataType: 'text', type: 'get', url: href, success: function(data) {
- $('#main').html(data)
- $('#main .time').relativeDate()
- }})
- }, poll_interval * 1000)
-
- location.hash = '#poll'
-
- return false
- };
-
- if (location.hash == '#poll') poll_start($('a[rel=poll]'))
-
- $('a[rel=poll]').click(function() { return poll_start($(this)) })
-
- $('ul.failed li').hover(function() {
- $(this).addClass('hover');
- }, function() {
- $(this).removeClass('hover');
- })
-
- $('ul.failed a[rel=retry]').click(function() {
- var href = $(this).attr('href');
- $(this).text('Retrying...');
- var parent = $(this).parent();
- $.ajax({dataType: 'text', type: 'get', url: href, success: function(data) {
- parent.html('Retried <b><span class="time">' + data + '</span></b>');
- relatizer.apply($('.time', parent));
- $('.date_time', parent).hide();
- $('a.toggle_format span', parent).click(format_toggler);
- }});
- return false;
- })
-
- $('#clear-failed-jobs').click(function(){
- return confirm('Are you sure you want to clear ALL failed jobs?');
- })
-
- $('#retry-failed-jobs').click(function(){
- return confirm('Are you sure you want to retry ALL failed jobs?');
- })
-})
;
-; TI"required_assets_digest; TI"%f0bd2f54e0be0639fa7d46f0624fc87c; FI"
_version; TI"%ac1cd7cf9811f9938e2b8937c60a24e6; F
+; TI"required_assets_digest; TI"%fec5c3b32da35c86cd87c6506fcd5059; FI"
_version; TI"%1005ed9f20e25fb0a0599a7017dd0e6b; F
\ No newline at end of file