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/ApexKeyInformationTab.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/ApexKeyInformationTab.js')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexKeyInformationTab.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexKeyInformationTab.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexKeyInformationTab.js index 3ba1e17..9442ddd 100644 --- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexKeyInformationTab.js +++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexKeyInformationTab.js @@ -19,6 +19,10 @@ * ============LICENSE_END========================================================= */ +import {ajax_get} from "./ApexAjax"; +import {apexUtils_escapeHtml, apexUtils_removeElement} from "./ApexUtils"; +import {createTable} from "./ApexTable"; + function keyInformationTab_reset() { keyInformationTab_deactivate(); keyInformationTab_activate(); @@ -27,7 +31,7 @@ function keyInformationTab_reset() { function keyInformationTab_activate() { keyInformationTab_create(); - var requestURL = restRootURL + "/KeyInformation/Get?name=&version="; + var requestURL = window.restRootURL + "/KeyInformation/Get?name=&version="; ajax_get(requestURL, function(data) { $("#keyInformationTableBody").find("tr:gt(0)").remove(); @@ -103,3 +107,10 @@ function keyInformationTab_create() { keyInformationTable.appendChild(keyInformationTableBody); keyInformationTable.setAttribute("id", "keyInformationTableBody"); } + +export { + keyInformationTab_activate, + keyInformationTab_create, + keyInformationTab_deactivate, + keyInformationTab_reset +} |