mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 17:56:07 +01:00
Also reset graph when the backup is complete
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user