From bd6127728a814eb1a4e46bd51a941854ce2b8ee3 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 6 Jun 2022 17:07:29 +0200 Subject: [PATCH] Visual selector - 'clear selection' button should clear the filter also --- changedetectionio/static/js/visual-selector.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changedetectionio/static/js/visual-selector.js b/changedetectionio/static/js/visual-selector.js index 43feccb2..b73dc526 100644 --- a/changedetectionio/static/js/visual-selector.js +++ b/changedetectionio/static/js/visual-selector.js @@ -49,6 +49,8 @@ $(document).ready(function() { } state_clicked=false; ctx.clearRect(0, 0, c.width, c.height); + xctx.clearRect(0, 0, c.width, c.height); + $("#css_filter").val(''); });