Closed (fixed)
Project:
Printer, email and PDF versions
Version:
5.x-4.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2009 at 17:15 UTC
Updated:
4 May 2009 at 19:00 UTC
Within Lotus Notes, when an email is opened I receive the error: "A JavaScript Error was encountered while loading a page. Error on line 11: ReferenceError: Drupal is not defined"
I have disabled sending the logo within the email, other than that all settings are default. I don't see why javascript is being sent with the email. Lotus notes is notorious for terribly rendering items so I have no problem editing a particular file if the javascript is necessary but a nuisance in my niche email client market. Help appreciated
Comments
Comment #1
jcnventuraHi,
Javascript is being sent with the e-mail because the original page includes it and the sent e-mail includes the full content of the original page (including the scripts).
If you don't want scripts in any output version of the module, simply delete the scripts line in print.tpl.php.
If you just want to disable javascript in the email, copy the print.tpl.php to print_mail.tpl.php and delete the same line in the new file..
João
Comment #2
ryan.nauman commentedAh didn't see print.tpl.php there, removed that line and it works great. Thanks