From c36099c008f732beb611e723c9189df54b7264c1 Mon Sep 17 00:00:00 2001 From: Muhammed AbuOdeh Date: Fri, 24 May 2024 17:49:55 +0400 Subject: [PATCH] parser uses config, undoredo set up --- parsing.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parsing.js b/parsing.js index 3557dab..479a6dc 100644 --- a/parsing.js +++ b/parsing.js @@ -70,12 +70,17 @@ function getParsedData(parse_data_id) { fetch(`https://mra9407.pythonanywhere.com/get_parsed_data?data_id=${parse_data_id}`, requestOptions) .then(response => response.text()) .then(data => { + readConfigFile(); // readConfigFileForParsedSentences(); treesArray = convertToJSON(data); + currentTreeIndex = 0; + UndoRedoHelperOnTreePageSetUp(); + view([$(".upload")], hideComponents); addFilenameToHtmlElements('Untitled.conllx'); getTree(treesArray[0]); + }) .catch(error => console.log('error', error));