From b92104ac02c927af20f3d9dabeb8f3a7e535ec78 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Mon, 18 May 2020 23:10:24 +0200 Subject: [PATCH] #30 if !#exists or !#found dont set marker --- coinmanager/coinc/static/coinc/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coinmanager/coinc/static/coinc/main.js b/coinmanager/coinc/static/coinc/main.js index 74d02d5..ae967e4 100644 --- a/coinmanager/coinc/static/coinc/main.js +++ b/coinmanager/coinc/static/coinc/main.js @@ -183,7 +183,8 @@ function render_response(data, td, set) { /* apply div overlay styles */ $(td).find('div[type=overlay]').removeClass(); - $(td).find('div[type=overlay]').addClass('found ' + div_class); + if (set['exists'] && set['found']) { + $(td).find('div[type=overlay]').addClass('found ' + div_class); } }