fix #170 - Live PDF not rendered when using logo

This commit is contained in:
Hillel Coren 2014-10-19 19:37:25 +03:00
parent 27339dbfa0
commit 8410ad9dc9

View File

@ -17,9 +17,11 @@
logoImages.imageLogoHeight3 = 81/2;
@if (file_exists($account->getLogoPath()))
if (window.invoice) {
invoice.image = "{{ HTML::image_data($account->getLogoPath()) }}";
invoice.imageWidth = {{ $account->getLogoWidth() }};
invoice.imageHeight = {{ $account->getLogoHeight() }};
}
@endif
var NINJA = NINJA || {};