diff options
author | Natalie Downe <nat@natbat.net> | 2009-05-21 18:20:39 +0100 |
---|---|---|
committer | Natalie Downe <nat@natbat.net> | 2009-05-21 18:20:39 +0100 |
commit | a18f032ef8dd23e5bac40adad469ef24d378987b (patch) | |
tree | 7d3cad98c4cccd5854f40721d453e02f538bb86d /js | |
parent | 942ccec41002ac95d280d0f124d7deeeae09d46e (diff) |
Add ?print to the experimental.html URL to force a print preview
Diffstat (limited to 'js')
-rw-r--r-- | js/dynamic.js | 5 |
1 files changed, 4 insertions, 1 deletions
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(){ |