Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
impression limit data url
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Jan 17, 2017
1 parent 56a05f5 commit c6eed97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/navigateur/public/js/app/menu/impression.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ define(['panneau', 'aide', 'browserDetect'], function(Panneau, Aide, BrowserDete
html += '<body class="media-print-igo" style="width: ' + imgSize.width + '; height: ' + imgSize.height + '; padding: 0; margin: 0;">';
html += '<center><img height=' + imgSize.height + ' width= ' + imgSize.width + ' src="' + canvas.toDataURL("image/png") + '" /></center>';
html += '<button class="noPrint" type="button" onclick="window.print()" style="margin: 5px; z-index: 999; position: absolute; bottom:0; right: 0; cursor: pointer;">Imprimer</button>';
if (BrowserDetect.browser !== 'Explorer') {
if (BrowserDetect.browser !== 'Explorer' && paperSize.paperMax < 2000) {
html += '<button class="noPrint saveButtonPrint" type="button" onclick="savePrintImage()" style="margin: 5px; z-index: 999; position: absolute; bottom:0; right: ' + posRightButton + 'px; cursor: pointer;">Enregistrer</button>';
}
html += '</body></html>';
Expand Down

0 comments on commit c6eed97

Please sign in to comment.