From b768aa6e70570f3cf3f5748ea94c38088e97b28c Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Wed, 29 Jul 2015 14:50:38 +0200 Subject: [PATCH] Reset backup days count after processing the backup --- themes/grav/js/admin-all.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/grav/js/admin-all.js b/themes/grav/js/admin-all.js index c3a6bb7f..bbb20c2f 100644 --- a/themes/grav/js/admin-all.js +++ b/themes/grav/js/admin-all.js @@ -164,6 +164,11 @@ $(function () { toastr.options[setting] = toastrBackup[setting]; } } + + if (url.indexOf('task:backup') !== -1) { + //Reset backup days count + $('.backups-chart .numeric').html("0 days"); + } } }).always(function() { // Restore button