Skip to content

Commit

Permalink
Load jquery using requirejs to print page
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartlomiejsz committed Jun 14, 2016
1 parent e7d6678 commit 702a6d6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions app/code/Magento/Theme/view/frontend/templates/html/print.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
*/
?>
<script>
jQuery(function() {
window.print();
});
require(
[
'jquery'
],
function($) {
$(function() {
window.print();
});
}
);
</script>

0 comments on commit 702a6d6

Please sign in to comment.