From df33c7b36daaf0fccbdaeef2fca29c9f45921150 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 13 Nov 2023 10:30:24 +0100
Subject: [PATCH] Fix old Utils references in js
---
.../query-builder/general-query-builder-functions.js | 2 +-
app/templates/main/news_new.html.j2 | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/static/js/CorpusAnalysis/query-builder/general-query-builder-functions.js b/app/static/js/CorpusAnalysis/query-builder/general-query-builder-functions.js
index 97380ca7..e48419d4 100644
--- a/app/static/js/CorpusAnalysis/query-builder/general-query-builder-functions.js
+++ b/app/static/js/CorpusAnalysis/query-builder/general-query-builder-functions.js
@@ -349,7 +349,7 @@ class GeneralQueryBuilderFunctions {
switchToExpertModeParser() {
let expertModeInputField = document.querySelector('#corpus-analysis-concordance-form-query');
expertModeInputField.value = '';
- let queryBuilderInputFieldValue = Utils.unescape(document.querySelector('#corpus-analysis-concordance-query-preview').innerHTML.trim());
+ let queryBuilderInputFieldValue = nopaque.Utils.unescape(document.querySelector('#corpus-analysis-concordance-query-preview').innerHTML.trim());
if (queryBuilderInputFieldValue !== "" && queryBuilderInputFieldValue !== ";") {
expertModeInputField.value = queryBuilderInputFieldValue;
}
diff --git a/app/templates/main/news_new.html.j2 b/app/templates/main/news_new.html.j2
index 1af2dddd..735eca44 100644
--- a/app/templates/main/news_new.html.j2
+++ b/app/templates/main/news_new.html.j2
@@ -198,7 +198,7 @@
function mastodonStatusToElement(status) {
let date = new Date(status.created_at).toLocaleString('en-US');
- let newsElement = Utils.HTMLToElement(
+ let newsElement = nopaque.Utils.HTMLToElement(
`
@@ -222,7 +222,7 @@
function bisBlogsEntryToElement(entry) {
let date = new Date(entry.published).toLocaleString('en-US');
- let newsElement = Utils.HTMLToElement(
+ let newsElement = nopaque.Utils.HTMLToElement(
`