diff options
author | 2020-09-21 09:19:42 +0100 | |
---|---|---|
committer | 2020-10-02 09:06:00 +0100 | |
commit | 51b0c6c9b06d97d007d99cdcd8651a97b0b792df (patch) | |
tree | 4388fe094039c59c6391ac30bd20be58697a5385 /gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexModelHandling.js | |
parent | 33c9f2c07083f2f94f909a27f406da2744c4158f (diff) |
JS Testing added for apex-editor
Last apex-editor/pom.xml change to exclude the /dist folder
Issue-ID: POLICY-2783
Change-Id: I076aac4e503c7e5f2ea39fa9291153be4b119808
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexModelHandling.js')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexModelHandling.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexModelHandling.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexModelHandling.js index d6af0c9..9c04102 100644 --- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexModelHandling.js +++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexModelHandling.js @@ -19,8 +19,11 @@ * ============LICENSE_END========================================================= */ +import {ajax_getOKOrFail, ajax_get} from "./ApexAjax"; +import {resultForm_activate} from "./ApexResultForm"; + function modelHandling_analyse() { - var requestURL = restRootURL + "/Model/Analyse"; + var requestURL = window.restRootURL + "/Model/Analyse"; ajax_get(requestURL, function(data) { resultForm_activate(document.getElementById("mainArea"), "Model Analysis Result", data.messages.message[0]); @@ -28,7 +31,7 @@ function modelHandling_analyse() { } function modelHandling_validate() { - var requestURL = restRootURL + "/Model/Validate"; + var requestURL = window.restRootURL + "/Model/Validate"; ajax_getOKOrFail(requestURL, function(data) { var validationResultString = ""; @@ -37,4 +40,9 @@ function modelHandling_validate() { } resultForm_activate(document.getElementById("mainArea"), "Model Validation Result", validationResultString); }); -}
\ No newline at end of file +} + +export { + modelHandling_analyse, + modelHandling_validate +} |