{:uriI"file:///Users/marten/rgoc/quby/app/assets/javascripts/quby/printer.js?type=application/javascript&pipeline=self&id=6a87eaaac606c2d1eda2f04c33ec70ef256f0242b572ea050d99f7dd81e21dad:ET:load_pathI"3/Users/marten/rgoc/quby/app/assets/javascripts;T: filenameI"C/Users/marten/rgoc/quby/app/assets/javascripts/quby/printer.js;T: nameI"quby/printer;T:logical_pathI"quby/printer.self.js;T:content_typeI"application/javascript;T:sourceI"(function($) { isPrinting = false var defaults = { print_container: 'x_print_container'}, settings = {} jQuery.fn.outer = function() { return $($('
').html(this.clone().removeClass(this.attr("class")).addClass("x_print_container"))).html(); } $.fn.print_area = function(options){ $.extend(settings, defaults, options); var doc = document, win = window, container = $(this), old_parent = container.parent(), origDisplay = [], NONE = 'none', body = doc.body, childNodes = body.childNodes; if (isPrinting) { // block the button while in printing mode return; } isPrinting = true; // extract print content $(body).append(container); // run before_filter if present if (settings.beforeFilter) settings.beforeFilter() // print win.print(); // allow the browser to prepare before reverting setTimeout(function() { // put back print content old_parent.prepend(container) // run after_filter if present if (settings.afterFilter){ settings.afterFilter(); } isPrinting = false; }, 1000); } })(jQuery); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Qfile-digest:///Users/marten/rgoc/quby/app/assets/javascripts/quby/printer.js;TTF: requiredo;;} F:stubbedo;;} F: linkso;;} F:charsetI" utf-8;F:digest"%&T)vۦ7"p؉c1kl/8:lengthi:dependencies_digest"%9oEj8DME}IrТ/Ώ:idI"E6a87eaaac606c2d1eda2f04c33ec70ef256f0242b572ea050d99f7dd81e21dad;F: mtimel+g,]