From f9af2ab5b9e042753627141efbb274a54d90716a Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Wed, 29 Jul 2015 15:10:07 +0200 Subject: [PATCH] Also reset graph when the backup is complete --- themes/grav/js/admin-all.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/themes/grav/js/admin-all.js b/themes/grav/js/admin-all.js index bbb20c2f..24f9d236 100644 --- a/themes/grav/js/admin-all.js +++ b/themes/grav/js/admin-all.js @@ -168,6 +168,21 @@ $(function () { if (url.indexOf('task:backup') !== -1) { //Reset backup days count $('.backups-chart .numeric').html("0 days"); + + var data = { + series: [0,100] + }; + + var options = { + donut: true, + donutWidth: 10, + startAngle: 0, + total: 100, + showLabel: false, + height: 150 + }; + + Chartist.Pie('.backups-chart .ct-chart', data, options); } } }).always(function() {