From fa447b7a7febef71edeaf024dce1697efe82b321 Mon Sep 17 00:00:00 2001 From: Cristina Cochior Date: Sun, 11 Oct 2020 13:18:45 +0200 Subject: [PATCH] show all:clear content before populating div added --- templates/layout.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/layout.html b/templates/layout.html index b954228..1dfaf4d 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -139,6 +139,7 @@ var flag = true; $("#showall").click(function(event){ if (flag === true) { + $(".name-elements").empty(); $('.file-names-container span').each(function () { var current = $(this).attr('id'); $.getJSON('{{ url_for('static', filename='js/mergedjson.json') }}', function(test) {