use onclick event for printing instead of href to avoid side effects

This commit is contained in:
Helmut Merz 2014-02-27 15:55:06 +01:00
parent 2d1830b9b8
commit 930249e057

View file

@ -282,7 +282,8 @@
tal:condition="python: 'print' in pageActions"
title="Print this page"
i18n:attributes="title">
<a href="javascript:print()">
<a href="#"
onclick="print(); return false;">
<img tal:attributes="src string:$resourceBase/cybertools.icons/printer.png"
i18n:attributes="alt"
alt="Print" />