From 2a1c9520ee9e6c4b120c1d64c13af77565fd963f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 29 Sep 2020 11:47:22 +0200 Subject: [PATCH] Fix processingIndicator missing --- content/dataset.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/dataset.html b/content/dataset.html index bf963522..0becdb2f 100644 --- a/content/dataset.html +++ b/content/dataset.html @@ -143,6 +143,7 @@ draft: false reloadCustomFiles() } async function reloadGeoms(){ + processingIndicator.isActive = true window.geoms = await GeometriesLoader.loadForAsync(uniq(window.defaultDats.map(d=>{ return { set:d.set.name, @@ -160,9 +161,11 @@ draft: false const shownHunknow=window.dats.some((d)=>!mols.includes(d.molecule)) if (shownHunknow) { $("#cb_nHUnknow").parent().show() - } + } + processingIndicator.isActive = false } async function reloadCustomFiles() { + processingIndicator.isActive = true window.dats = window.defaultDats; const kinds = new Map([["file_abs", VertExcitationKinds.Absorbtion], ["file_fluo", VertExcitationKinds.Fluorescence]]) for (const el of $('#form_dat > fieldset > fieldset > div > input[type="file"')) { @@ -173,6 +176,7 @@ draft: false } } } + processingIndicator.isActive = false reloadSelect("sets") } async function clearSelect(BeforeName = null) {