From 017188a260689a33f24bb53f9be423f3f49740d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Thu, 10 Oct 2019 09:49:39 +0200 Subject: [PATCH] Cleaning references on datatype change --- content/multipledataset.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/multipledataset.html b/content/multipledataset.html index 93967342..fab3818e 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -62,7 +62,6 @@ draft: false var dat = await AbsDataFile.loadAsync(file) window.dats.push(dat) break; - case "fluo": dat = await FluoDataFile.loadAsync(file) window.dats.push(dat) @@ -73,8 +72,10 @@ draft: false break; } } - $('#form_dat > fieldset > div > select').each(function () { + $('#form_dat > fieldset > div > select,#sel_ref').each(function () { $(this).find('option[value!=""]').remove() + }) + $('#form_dat > fieldset > div > select').each(function () { const vals = uniq(window.dats.map((d) => { return d[$(this).attr("name")] })) for (const val of vals) { $("