Impression sur id #print-page
This commit is contained in:
parent
f338f6a1ed
commit
4e0cf4d99b
@ -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',
|
||||
|
@ -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');
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
function myFunction() {
|
||||
window.print();
|
||||
}
|
@ -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){
|
||||
|
@ -264,7 +264,4 @@
|
||||
.col-md-offset-0 {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user