Skip to content
Snippets Groups Projects
Commit e41be95e authored by Carlos Busto Capeáns's avatar Carlos Busto Capeáns
Browse files

Issue #3136422 by Zevior: Chart not initializing after html is replaced by ajax

parent 5a676a28
No related branches found
Tags 2.0.0-rc0
No related merge requests found
......@@ -161,7 +161,10 @@
// Check if exist charts to build.
if (settings.chartjs) {
$.each(settings.chartjs, function (i, el) {
ChartJs.init(i, el.data, el.options, el.plugins);
$('#' + el.id + ':not(.js-chartjs-processed)').each(function() {
ChartJs.init(i, el.data, el.options, el.plugins);
$(this).addClass('js-chartjs-processed');
});
});
delete settings.chartjs;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment