diff --git a/app/static/js/CorpusAnalysis/CorpusAnalysisApp.js b/app/static/js/CorpusAnalysis/CorpusAnalysisApp.js index 2bdfac58..f364d816 100644 --- a/app/static/js/CorpusAnalysis/CorpusAnalysisApp.js +++ b/app/static/js/CorpusAnalysis/CorpusAnalysisApp.js @@ -30,7 +30,7 @@ class CorpusAnalysisApp { // Setup CQi over SocketIO connection and gather data from the CQPServer const statusTextElement = this.elements.initModal.querySelector('.status-text'); statusTextElement.innerText = 'Creating CQi over SocketIO client...'; - const cqiClient = new cqi.Client('/cqi_over_sio'); + const cqiClient = new nopaque.corpus_analysis.cqi.Client('/cqi_over_sio'); statusTextElement.innerText += ' Done'; statusTextElement.innerHTML = 'Waiting for the CQP server...'; const response = await cqiClient.api.socket.emitWithAck('init', this.corpusId); 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( `