mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-03-20 19:41:31 +01:00
Rely on the event system to remove hidden classes for the Chart
This commit is contained in:
@@ -61,7 +61,7 @@ export default class Chart {
|
||||
data
|
||||
});
|
||||
this.chart = chartist[this.type](this.element.find('.ct-chart').empty()[0], this.data, this.options);
|
||||
this.element.find('.hidden').removeClass('hidden');
|
||||
this.chart.on('created', () => this.element.find('.hidden').removeClass('hidden'));
|
||||
}
|
||||
|
||||
updateData(data) {
|
||||
|
||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user