Commit 6f590d3e authored by jcnventura's avatar jcnventura

Issue #1189198 by guillaumev: use proper D7 javascript syntax for the send to...

Issue #1189198 by guillaumev: use proper D7 javascript syntax for the send to printer functionality.
parent d30e9193
...@@ -209,7 +209,7 @@ function _print_var_generator($node, $message = NULL, $cid = NULL) { ...@@ -209,7 +209,7 @@ function _print_var_generator($node, $message = NULL, $cid = NULL) {
} }
$window_close = ($print_html_new_window && $print_html_windowclose) ? 'window.close();' : ''; $window_close = ($print_html_new_window && $print_html_windowclose) ? 'window.close();' : '';
$print['sendtoprinter'] = $print_html_sendtoprinter ? "<script type='text/javascript'>Drupal.behaviors.print = function(context) {window.print();$window_close}</script>" : ''; $print['sendtoprinter'] = $print_html_sendtoprinter ? "<script type='text/javascript'>(function ($) { Drupal.behaviors.print = { attach: function(context) {window.print();$window_close}};}(jQuery));</script>" : '';
switch ($print_logo_options) { switch ($print_logo_options) {
case 0: // none case 0: // none
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment