fix(iframe): on print in new window
This commit is contained in:
parent
8a673d381d
commit
ac591c34ba
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ if (empty($_GET['print']) || $_GET['print'] != 1) {
|
|||
$renderedEntry .= $field->renderStaticIfPermitted($fiche, $GLOBALS['wiki']->GetUsername());
|
||||
}
|
||||
echo $renderedEntry;
|
||||
echo '<a class="btn btn-primary no-print" href="'.$GLOBALS['wiki']->href('', '', 'print=1&returnTo='.$GLOBALS['wiki']->href('', '')).'"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</a>';
|
||||
echo '<a class="btn btn-primary no-print new-window" href="'.$GLOBALS['wiki']->href('', '', 'print=1&returnTo='.$GLOBALS['wiki']->href('', '')).'"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</a>';
|
||||
} else {
|
||||
$imgwidth = $imgheight = 600;
|
||||
$imgCarree = '';
|
||||
|
@ -76,7 +76,7 @@ echo <<<TEMPLATE
|
|||
<div class="full-portrait-a4 indications2">
|
||||
<img src="custom/templates/bazar/assets/Instructions_pliage_verso.jpg" alt="instructions verso" />
|
||||
</div>
|
||||
<button style="margin-top:1em;" class="btn btn-primary no-print" onclick="window.print()"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</button>
|
||||
<button style="margin-top:1em;" class="btn btn-primary no-print new-window" onclick="window.print()"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</button>
|
||||
|
||||
<style>
|
||||
.full-portrait-a4 {
|
||||
|
|
Loading…
Add table
Reference in a new issue