From fe0f923158e2781820ea996c7f96851d5ee3af13 Mon Sep 17 00:00:00 2001 From: Sebastien Clement Date: Fri, 10 Jan 2020 19:37:27 +0100 Subject: [PATCH] :eight_pointed_black_star: Fix auto clean lever --- .../rootfs/opt/nextcloud_backup/views/index.ejs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/views/index.ejs b/nextcloud_backup/rootfs/opt/nextcloud_backup/views/index.ejs index a9cd5c6..6d0f175 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/views/index.ejs +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/views/index.ejs @@ -692,7 +692,7 @@ }) } - function cleanNow(){ + function cleanNow() { loadingModal.open(); $.post('./api/clean-now') .done(() => { @@ -737,9 +737,10 @@ $('#cron-drop-day-month-read + label').removeClass("active"); $('#cron-drop-day-month-read + label').addClass("active"); - $('#auto_clean_local').prop('checked', data.auto_clean_local); + + $('#auto_clean_local').prop('checked', data.auto_clean_local == "true"); $('#local-snap-keep-read, #local-snap-keep').val(data.auto_clean_local_keep); - $('#auto_clean_backup').prop('checked', data.auto_clean_backup); + $('#auto_clean_backup').prop('checked', data.auto_clean_backup == "true"); $('#backup-snap-keep-read, #backup-snap-keep').val(data.auto_clean_backup_keep);