Impression sur id #print-page

This commit is contained in:
Michael RICOIS 2016-12-14 16:34:43 +01:00
parent f338f6a1ed
commit 4e0cf4d99b
5 changed files with 5 additions and 11 deletions

View File

@ -26,9 +26,8 @@
<i class="fa fa-print fa-fw"></i> <span class="hidden-xs hidden-sm">Imprimer</span> <span class="caret"></span></a>
<ul class="dropdown-menu">
<?php if ($this->PrintHtml) {?>
<li><a title="Impression" target="_blank" onclick="myFunction()">
<li><a title="Impression" target="_blank" id="print-page">
<span class="glyphicon glyphicon-print" aria-hidden="true"></span> Papier</a></li>
<?php }?>
<?php if ($this->PrintPdf) {?>
<li><a title="Impression PDF" href="<?=$this->url(array('module'=>'print', 'controller'=>'file', 'action'=>'pdf',

View File

@ -106,7 +106,6 @@ class Application_Controller_Plugin_Theme extends Zend_Controller_Plugin_Abstrac
->appendFile('/libs/ui-1.11.4/jquery-ui.min.js', 'text/javascript')
->appendFile('/libs/ui-1.11.4/datepicker-fr.js', 'text/javascript')
->appendFile('/themes/default/scripts/bridge.js', 'text/javascript')
->appendFile('/themes/default/scripts/print.js', 'text/javascript')
->appendFile('/themes/default/scripts/main.js', 'text/javascript')
->appendFile('/libs/bootstrap-3.3.7/js/bootstrap.min.js', 'text/javascript');

View File

@ -1,3 +0,0 @@
function myFunction() {
window.print();
}

View File

@ -11,7 +11,9 @@ $(function(){
$("#page-wrap").css("min-height", (height) + "px");
}
});
$('#print-page').on('click', function() {
window.print();
});
$('img.flag').on('click', function() {
var url = window.location.href;
$.post('/user/lang', {lang: $(this).attr('id')}, function(data){

View File

@ -264,7 +264,4 @@
.col-md-offset-0 {
margin-left: 0;
}
}