Skip to content

Commit

Permalink
Dashboard Charts now always refresh no matter what (fixes #753)
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Oct 24, 2016
1 parent 61982c7 commit 8bd7f8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

1. [](#bugfix)
* Editor link button doesn't prefix links with `http://` anymore [#813](https://github.com/getgrav/grav-plugin-admin/issues/813)
* Dashboard Charts now always refresh no matter what [#753](https://github.com/getgrav/grav-plugin-admin/issues/753)

# v1.2.4
## 10/22/2016
Expand Down
3 changes: 3 additions & 0 deletions themes/grav/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ KeepAlive.start();
global.setInterval(() => {
contentScrollbar.update();
sidebar.scroller.update();
Object.keys(Dashboard.Chart.Instances).forEach((chart) => {
Dashboard.Chart.Instances[chart].chart.update();
});
}, 150);

// global event to catch sidebar_state changes
Expand Down
Loading

0 comments on commit 8bd7f8d

Please sign in to comment.