Add upstream
This commit is contained in:
16
wp-content/plugins/jetpack/modules/shortcodes/js/recipes.js
Normal file
16
wp-content/plugins/jetpack/modules/shortcodes/js/recipes.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/* 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 );
|
||||
Reference in New Issue
Block a user