From 4eb6a5a2f7c5f9da7133dabb81250638067b9f12 Mon Sep 17 00:00:00 2001 From: billz Date: Thu, 2 Apr 2020 08:12:59 +0100 Subject: [PATCH] Change last updated text on success --- app/js/custom.js | 7 ++++--- templates/adblock/general.php | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/js/custom.js b/app/js/custom.js index 7eb97e42..3fe9ef47 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -291,9 +291,9 @@ function loadChannelSelect(selected) { }); } -/* Updates the selected ad blocklist - * Request is passed to an ajax handler to download the associated list - * +/* Updates the selected blocklist + * Request is passed to an ajax handler to download the associated list. + * Interface elements are updated to indicate current progress, status. */ function updateBlocklist() { var blocklist_id = $('#cbxblocklist').val(); @@ -305,6 +305,7 @@ function updateBlocklist() { if (jsonData['return'] == '0') { $('#cbxblocklist-status').find('i').removeClass('fas fa-cog fa-spin').addClass('fas fa-check'); $('#cbxblocklist-status').removeClass('check-progress').addClass('check-updated').delay(500).animate({ opacity: 1 }, 700); + $('#'+blocklist_id).text("Just now"); } }) } diff --git a/templates/adblock/general.php b/templates/adblock/general.php index 426f40c2..22845e66 100644 --- a/templates/adblock/general.php +++ b/templates/adblock/general.php @@ -19,8 +19,10 @@

-

:
-
:
+
: +
+
: +