From b0d62b91b7d93dc01d0d47f74ca55d03faf5ce22 Mon Sep 17 00:00:00 2001 From: Jeroen Dekkers Date: Thu, 29 Aug 2024 14:01:17 +0200 Subject: [PATCH] Move variables from utils.js to renderNormalizerOutputOOIs.js (#3412) Co-authored-by: Jan Klopper --- rocky/assets/js/renderNormalizerOutputOOIs.js | 4 +++- rocky/assets/js/utils.js | 5 ----- rocky/rocky/templates/tasks/normalizers.html | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/rocky/assets/js/renderNormalizerOutputOOIs.js b/rocky/assets/js/renderNormalizerOutputOOIs.js index e7d7fdcbefe..3e20cddab3f 100644 --- a/rocky/assets/js/renderNormalizerOutputOOIs.js +++ b/rocky/assets/js/renderNormalizerOutputOOIs.js @@ -1,4 +1,6 @@ -import { language, organization_code } from "./utils.js"; +const htmlElement = document.getElementsByTagName("html")[0]; +const language = htmlElement.getAttribute("lang"); +const organization_code = htmlElement.getAttribute("data-organization-code"); const buttons = document.querySelectorAll( ".expando-button.normalizer-list-table-row", diff --git a/rocky/assets/js/utils.js b/rocky/assets/js/utils.js index 225c265be1c..e69de29bb2d 100644 --- a/rocky/assets/js/utils.js +++ b/rocky/assets/js/utils.js @@ -1,5 +0,0 @@ -const htmlElement = document.getElementsByTagName("html")[0]; -const language = htmlElement.getAttribute("lang"); -const organization_code = htmlElement.getAttribute("data-organization-code"); - -export { language, organization_code }; diff --git a/rocky/rocky/templates/tasks/normalizers.html b/rocky/rocky/templates/tasks/normalizers.html index 096327e328c..340dad142de 100644 --- a/rocky/rocky/templates/tasks/normalizers.html +++ b/rocky/rocky/templates/tasks/normalizers.html @@ -93,6 +93,6 @@

{% translate "Normalizers" %}

{% block html_at_end_body %} {{ block.super }} {% compress js %} - + {% endcompress %} {% endblock html_at_end_body %}