From 99ca8787ab8b076cd351be888d23988b27c8f937 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 11 Jun 2025 12:12:48 +0200 Subject: [PATCH] UI - Always unset 'unviewed' state when '[History]' button is pressed from watch overview list #3243 --- changedetectionio/static/js/watch-overview.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/changedetectionio/static/js/watch-overview.js b/changedetectionio/static/js/watch-overview.js index d53d9e6a..59fae0bf 100644 --- a/changedetectionio/static/js/watch-overview.js +++ b/changedetectionio/static/js/watch-overview.js @@ -16,6 +16,12 @@ $(function () { $('#op_extradata').val(prompt("Enter a tag name")); }); + + $('.history-link').click(function (e) { + // Incase they click 'back' in the browser, it should be removed. + $(this).closest('tr').removeClass('unviewed'); + }); + $('.with-share-link > *').click(function () { $("#copied-clipboard").remove();