Dashboard chart text encoding accents #1558

This commit is contained in:
Hillel Coren 2017-07-02 18:57:01 +03:00
parent e8f359dce6
commit 41bfea1edb

View File

@ -42,11 +42,11 @@
}, },
label: function(item, data) { label: function(item, data) {
if (item.datasetIndex == 0) { if (item.datasetIndex == 0) {
var label = " {{ trans('texts.invoices') }}: "; var label = " {!! trans('texts.invoices') !!}: ";
} else if (item.datasetIndex == 1) { } else if (item.datasetIndex == 1) {
var label = " {{ trans('texts.payments') }}: "; var label = " {!! trans('texts.payments') !!}: ";
} else if (item.datasetIndex == 2) { } else if (item.datasetIndex == 2) {
var label = " {{ trans('texts.expenses') }}: "; var label = " {!! trans('texts.expenses') !!}: ";
} }
return label + formatMoney(item.yLabel, chartCurrencyId, account.country_id); return label + formatMoney(item.yLabel, chartCurrencyId, account.country_id);