From 1ab70f8e86a05e05a9b7bedfcdfe54834f9375c5 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 7 Jun 2022 19:53:13 +0200 Subject: [PATCH] Diff + Preview - Hide date selector widget when viewing screenshots as its not yet possible to compare screenshots (but will be soon!) --- changedetectionio/static/js/diff-overview.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changedetectionio/static/js/diff-overview.js b/changedetectionio/static/js/diff-overview.js index f3edbfdf..f39b9906 100644 --- a/changedetectionio/static/js/diff-overview.js +++ b/changedetectionio/static/js/diff-overview.js @@ -9,6 +9,9 @@ $(document).ready(function () { function toggle(hash_name) { if (hash_name === '#screenshot') { $("img#screenshot-img").attr('src', screenshot_url); + $("#settings").hide(); + } else { + $("#settings").show(); } } });