From b1a68c039a841a2c400b98099e0d8a0cffc9680c Mon Sep 17 00:00:00 2001 From: koksnuss Date: Mon, 11 May 2020 11:33:10 +0200 Subject: [PATCH] fix #19 --- coinmanager/coinc/static/coinc/main.js | 3 +-- coinmanager/coinc/templates/coinc/coin.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/coinmanager/coinc/static/coinc/main.js b/coinmanager/coinc/static/coinc/main.js index 64b082b..0cac22d 100644 --- a/coinmanager/coinc/static/coinc/main.js +++ b/coinmanager/coinc/static/coinc/main.js @@ -127,8 +127,7 @@ function render_response(td, set) { if (set['found'] && set['found_by'] && set['exists']) { div_class = set['found_by']; -// TODO remove marker before marker - $(td).find('div.coin').append('x'); + $(td).find('div.coin span').html('').html('x'); } $(td).removeClass(); $(td).addClass('coin ' + td_class); diff --git a/coinmanager/coinc/templates/coinc/coin.html b/coinmanager/coinc/templates/coinc/coin.html index 5297406..a94bff2 100644 --- a/coinmanager/coinc/templates/coinc/coin.html +++ b/coinmanager/coinc/templates/coinc/coin.html @@ -1 +1 @@ -
{{ marker }}
+
{{ marker }}