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/ApexMain.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/ApexMain.js')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexMain.js | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexMain.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexMain.js index 9dea9b5..d7019d3 100644 --- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexMain.js +++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexMain.js @@ -19,16 +19,22 @@ * ============LICENSE_END========================================================= */ +import {pageControl_noModelMode, pageControl_modelMode} from "./ApexPageControl"; +import {newModelForm_activate} from "./ApexNewModelForm"; +import {files_fileDownload, files_fileOpen, files_fileUpload} from "./ApexFiles"; +import {ajax_delete, ajax_get} from "./ApexAjax"; +import {modelHandling_analyse, modelHandling_validate} from "./ApexModelHandling"; + var restRootURL = null; var modelFileName = null; -$("#menu").fileMenu({ - slideSpeed : 200 -}); - $(document).ready(function() { + $("#menu").fileMenu({ + slideSpeed : 200 + }); pageControl_noModelMode(); main_getRestRootURL(); + $(".content").fadeIn(); }); $("#menu li").not(".emptyMessage").click(function() { @@ -114,6 +120,7 @@ function main_getRestRootURL() { var restContext = "apexservices/editor/"; if (localStorage.getItem("apex_session")) { restRootURL = href + restContext + localStorage.getItem("apex_session"); + window.restRootURL = href + restContext + localStorage.getItem("apex_session"); var requestURL = restRootURL + "/Model/GetKey"; ajax_get(requestURL, function(data) { $("#statusMessageTable").append("<tr><td> REST root URL set to: " + restRootURL + "</td></tr>"); @@ -166,8 +173,6 @@ $(".ebInlineMessage").mouseleave(function(e) { }, 200); }); -$(document).ready(function() { - $(".content").fadeIn(); -}); - -exports.restRootURL = { restRootURL }; +export { + clearLocalStorage +} |