From 3cb71c2acb7a721f0bcbb2020f1e8c0bd668eff3 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Thu, 24 Sep 2020 11:11:30 +0200 Subject: [PATCH] FIx Typos --- web/app/static/js/modules/corpus_analysis/client/Client.js | 4 ++-- web/app/static/js/modules/corpus_analysis/client/callbacks.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/app/static/js/modules/corpus_analysis/client/Client.js b/web/app/static/js/modules/corpus_analysis/client/Client.js index 7aac251d..b5b1bfdf 100644 --- a/web/app/static/js/modules/corpus_analysis/client/Client.js +++ b/web/app/static/js/modules/corpus_analysis/client/Client.js @@ -78,7 +78,7 @@ class Client { detailObject.notificationType = notificationType; detailObject.raiseModalFeedback = raiseModalFeedback; const event = new CustomEvent('notify-view', { detail: detailObject }); - console[notificationType]('Client dispatching Notification with detail object in details:', + console[notificationType]('Client dispatching Notification with details:', detailObject); document.dispatchEvent(event); } @@ -136,7 +136,7 @@ class Client { tmp_first_cpos.push(results.data.matches[dataIndex].c[0]); tmp_last_cpos.push(results.data.matches[dataIndex].c[1]); } - nopaque.socket.emit("corpus_analysis_get_match_with_full_context", + nopaque.socket.emit('corpus_analysis_get_match_with_full_context', {type: resultsType, data_indexes: dataIndexes, first_cpos: tmp_first_cpos, diff --git a/web/app/static/js/modules/corpus_analysis/client/callbacks.js b/web/app/static/js/modules/corpus_analysis/client/callbacks.js index 230cc195..34299505 100644 --- a/web/app/static/js/modules/corpus_analysis/client/callbacks.js +++ b/web/app/static/js/modules/corpus_analysis/client/callbacks.js @@ -81,7 +81,8 @@ function saveQueryData() { function getResultsData() { let [resultsType, dataIndexes, resultsList, client, results, rest] = arguments; client.isBusy = true; - if (resultsList.exportFullInspectContext.checked || resultsType === 'inspect-results') { + if (resultsList.exportFullInspectContext.checked + || resultsType === 'inspect-results') { console.info('Get results with full context'); client.getResultsData(resultsType, dataIndexes, results); } else {