From a18f032ef8dd23e5bac40adad469ef24d378987b Mon Sep 17 00:00:00 2001 From: Natalie Downe Date: Thu, 21 May 2009 18:20:39 +0100 Subject: Add ?print to the experimental.html URL to force a print preview --- js/dynamic.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/dynamic.js b/js/dynamic.js index 795ba57..08a7375 100644 --- a/js/dynamic.js +++ b/js/dynamic.js @@ -1,5 +1,8 @@ jQuery(function($) { - + // Append ?print to the URL to trigger print preview mode + if (location.href.split('?')[1].indexOf('print') > -1) { + $('link[media=print]').attr('media', ''); + } $('.gmap').each(function(){ -- cgit v1.2.3