| @@ -1,0 +1,14 @@ | ||
| 1 | +/* global jetpack_recipes_vars */ | |
| 2 | +( function ( $ ) { | |
| 3 | + $( window ).load( function () { | |
| 4 | + $( '.jetpack-recipe-print a' ).click( function ( event ) { | |
| 5 | + event.preventDefault(); | |
| 6 | + | |
| 7 | + // Print the DIV. | |
| 8 | + $( this ).closest( '.jetpack-recipe' ).printThis( { | |
| 9 | + pageTitle: jetpack_recipes_vars.pageTitle, | |
| 10 | + loadCSS: jetpack_recipes_vars.loadCSS, | |
| 11 | + } ); | |
| 12 | + } ); | |
| 13 | + } ); | |
| 14 | +} )( jQuery ); | |