Also reset graph when the backup is complete

This commit is contained in:
Flavio Copes
2015-07-29 15:10:07 +02:00
parent b768aa6e70
commit f9af2ab5b9

View File

@@ -168,6 +168,21 @@ $(function () {
if (url.indexOf('task:backup') !== -1) {
//Reset backup days count
$('.backups-chart .numeric').html("0 <em>days</em>");
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() {