This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/plugins/jetpack/modules/shortcodes/js/recipes.js

12 lines
362 B
JavaScript
Raw Permalink Normal View History

2018-03-21 18:19:20 +00:00
/* global jetpack_recipes_vars */
( function( $ ) {
$( window ).load( function() {
$( '.jetpack-recipe-print a' ).click( function( event ) {
event.preventDefault();
// Print the DIV.
$( this ).closest( '.jetpack-recipe' ).printThis( { pageTitle: jetpack_recipes_vars.pageTitle, loadCSS: jetpack_recipes_vars.loadCSS } );
} );
} );
} )( jQuery );