From 10ad157c040258ab1a41fe5834b410f45eac4639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Mon, 13 Jan 2020 09:35:15 +0100 Subject: [PATCH] Fix cleaning select --- content/multipledataset.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/multipledataset.html b/content/multipledataset.html index 303f885b..38858cdb 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -117,7 +117,7 @@ draft: false } } $('#form_dat > fieldset > div > select,#sel_ref').each(function () { - $(this).find('option[value!=""]').remove() + $(this).empty() }) $('#form_dat > fieldset > div > select').each(async function () { const vals = uniq(window.dats.map((d) => { return d[$(this).attr("name")] })) @@ -271,6 +271,7 @@ draft: false }) }) await window.doiCache.addRange(window.filtData.map((d) => d.DOI.string)) + $(sel_ref).empty() for (const el of uniq(window.filtData.map(d => [d.code, d.method.name, d.DOI.string]))) { op = $("