Created
January 31, 2012 04:11
-
-
Save joshgillies/1708729 to your computer and use it in GitHub Desktop.
Print Preview Shizz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(url, search) { | |
var printButton = $("#nav").find(".printer"); | |
var searchString = (search) ? search + "&SQ_DESIGN_NAME=printer_friendly" : false; | |
var printButtonHref = (searchString) ? printButton.attr("href") + searchString : false; | |
(printButtonHref) ? printButton.attr("href", printButtonHref) : printButton.attr("href"); | |
})("<MySource_PRINT id="__global__" var="asset_url" />", window.location.search); |
Is this where they put the slashes at the end of the BR's tags in HTML 9000 ? http://i3.kym-cdn.com/photos/images/newsfeed/000/234/739/fa5.jpg
It's hax, we lurve iiiiit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wat?