mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for bold/modern designs on customize page
This commit is contained in:
parent
429aba9471
commit
65d0e350d0
@ -45,6 +45,7 @@
|
|||||||
var customDesign = origCustomDesign = {!! $customDesign ?: 'JSON.parse(invoiceDesigns[0].javascript);' !!};
|
var customDesign = origCustomDesign = {!! $customDesign ?: 'JSON.parse(invoiceDesigns[0].javascript);' !!};
|
||||||
|
|
||||||
function getPDFString(cb, force) {
|
function getPDFString(cb, force) {
|
||||||
|
invoice.invoice_design_id = $('#invoice_design_id').val();
|
||||||
invoice.features = {
|
invoice.features = {
|
||||||
customize_invoice_design:{{ Auth::user()->hasFeature(FEATURE_CUSTOMIZE_INVOICE_DESIGN) ? 'true' : 'false' }},
|
customize_invoice_design:{{ Auth::user()->hasFeature(FEATURE_CUSTOMIZE_INVOICE_DESIGN) ? 'true' : 'false' }},
|
||||||
remove_created_by:{{ Auth::user()->hasFeature(FEATURE_REMOVE_CREATED_BY) ? 'true' : 'false' }},
|
remove_created_by:{{ Auth::user()->hasFeature(FEATURE_REMOVE_CREATED_BY) ? 'true' : 'false' }},
|
||||||
@ -52,8 +53,6 @@
|
|||||||
};
|
};
|
||||||
invoice.account.hide_quantity = {!! Auth::user()->account->hide_quantity ? 'true' : 'false' !!};
|
invoice.account.hide_quantity = {!! Auth::user()->account->hide_quantity ? 'true' : 'false' !!};
|
||||||
invoice.account.hide_paid_to_date = {!! Auth::user()->account->hide_paid_to_date ? 'true' : 'false' !!};
|
invoice.account.hide_paid_to_date = {!! Auth::user()->account->hide_paid_to_date ? 'true' : 'false' !!};
|
||||||
invoice.invoice_design_id = {!! Auth::user()->account->invoice_design_id !!};
|
|
||||||
|
|
||||||
NINJA.primaryColor = '{!! Auth::user()->account->primary_color !!}';
|
NINJA.primaryColor = '{!! Auth::user()->account->primary_color !!}';
|
||||||
NINJA.secondaryColor = '{!! Auth::user()->account->secondary_color !!}';
|
NINJA.secondaryColor = '{!! Auth::user()->account->secondary_color !!}';
|
||||||
NINJA.fontSize = {!! Auth::user()->account->font_size !!};
|
NINJA.fontSize = {!! Auth::user()->account->font_size !!};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user