diff --git a/app/static/js/CorpusAnalysis/CorpusAnalysisConcordance.js b/app/static/js/CorpusAnalysis/CorpusAnalysisConcordance.js index 2263fbde..fd32c49c 100644 --- a/app/static/js/CorpusAnalysis/CorpusAnalysisConcordance.js +++ b/app/static/js/CorpusAnalysis/CorpusAnalysisConcordance.js @@ -33,7 +33,7 @@ class CorpusAnalysisConcordance { async submitForm(queryModeId) { this.app.disableActionElements(); - let queryBuilderQuery = Utils.unescape(document.querySelector('#corpus-analysis-concordance-query-preview').innerHTML.trim()); + let queryBuilderQuery = nopaque.Utils.unescape(document.querySelector('#corpus-analysis-concordance-query-preview').innerHTML.trim()); let expertModeQuery = this.elements.expertModeForm.query.value.trim(); let query = queryModeId === 'corpus-analysis-concordance-expert-mode-form' ? expertModeQuery : queryBuilderQuery; let form = queryModeId === 'corpus-analysis-concordance-expert-mode-form' ? this.elements.expertModeForm : this.elements.queryBuilderForm; @@ -171,11 +171,11 @@ class CorpusAnalysisConcordance { this.elements.subcorpusActions.querySelector('.subcorpus-export-trigger').addEventListener('click', (event) => { event.preventDefault(); let subcorpus = this.data.subcorpora[this.settings.selectedSubcorpus]; - let modalElementId = Utils.generateElementId('export-subcorpus-modal-'); - let exportFormatSelectElementId = Utils.generateElementId('export-format-select-'); - let exportSelectedMatchesOnlyCheckboxElementId = Utils.generateElementId('export-selected-matches-only-checkbox-'); - let exportFileNameInputElementId = Utils.generateElementId('export-file-name-input-'); - let modalElement = Utils.HTMLToElement( + let modalElementId = nopaque.Utils.generateElementId('export-subcorpus-modal-'); + let exportFormatSelectElementId = nopaque.Utils.generateElementId('export-format-select-'); + let exportSelectedMatchesOnlyCheckboxElementId = nopaque.Utils.generateElementId('export-selected-matches-only-checkbox-'); + let exportFileNameInputElementId = nopaque.Utils.generateElementId('export-file-name-input-'); + let modalElement = nopaque.Utils.HTMLToElement( `