From 1e744ba58a68dc2ad6688b16f057d5b228fc7700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Wed, 22 Jan 2020 15:48:49 +0100 Subject: [PATCH] Add noscript message if JavaScript is disabled --- content/multipledataset.html | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/content/multipledataset.html b/content/multipledataset.html index 873217ce..19d07569 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -81,17 +81,17 @@ draft: false break; } }) - window.dats=[] - for(const subproms of proms){ + window.dats = [] + for (const subproms of proms) { var sub = await Promise.all(subproms) - for(mol of uniq(sub.map(d=>d.molecule))){ - submol=sub.filter(d=>d.molecule==mol) - TBE=sub.find((d)=>d.method.isTBE) - for(dat of submol.filter((d)=>d!==TBE)){ + for (mol of uniq(sub.map(d => d.molecule))) { + submol = sub.filter(d => d.molecule == mol) + TBE = sub.find((d) => d.method.isTBE) + for (dat of submol.filter((d) => d !== TBE)) { dat.CopyExcitationsTypeFrom(TBE) } } - window.dats=window.dats.concat(sub) + window.dats = window.dats.concat(sub) } processingIndicator.isActive = false reloadFileSelector() @@ -144,7 +144,7 @@ draft: false if (val !== null) { $("