diff options
author | waynedunican <wayne.dunican@est.tech> | 2020-09-21 09:19:42 +0100 |
---|---|---|
committer | waynedunican <wayne.dunican@est.tech> | 2020-10-02 09:06:00 +0100 |
commit | 51b0c6c9b06d97d007d99cdcd8651a97b0b792df (patch) | |
tree | 4388fe094039c59c6391ac30bd20be58697a5385 /gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexContextAlbumTab.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/ApexContextAlbumTab.js')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexContextAlbumTab.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexContextAlbumTab.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexContextAlbumTab.js index f0af49f..2b1a5e8 100644 --- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexContextAlbumTab.js +++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexContextAlbumTab.js @@ -19,6 +19,11 @@ * ============LICENSE_END========================================================= */ +import {rightClickMenu_scopePreserver} from './contextMenu'; +import {createTable} from './ApexTable'; +import {ajax_get} from './ApexAjax'; +import {apexUtils_removeElement} from "./ApexUtils"; + function contextAlbumTab_reset() { contextAlbumTab_deactivate(); contextAlbumTab_activate(); @@ -27,7 +32,7 @@ function contextAlbumTab_reset() { function contextAlbumTab_activate() { contextAlbumTab_create(); - var requestURL = restRootURL + "/ContextAlbum/Get?name=&version="; + var requestURL = window.restRootURL + "/ContextAlbum/Get?name=&version="; ajax_get(requestURL, function(data) { $("#contextAlbumTableBody").find("tr:gt(0)").remove(); @@ -69,6 +74,11 @@ function contextAlbumTab_deactivate() { function contextAlbumTab_create() { var contextAlbumTab = document.getElementById("contextAlbumsTab"); + //Testing purposes + if(contextAlbumTab === null){ + contextAlbumTab = document.createElement('contextAlbumsTab'); + } + var contextAlbumTabContent = document.getElementById("contextAlbumTabContent"); if (contextAlbumTabContent != null) { return @@ -115,4 +125,5 @@ function contextAlbumTab_create() { contextAlbumTable.setAttribute("id", "contextAlbumTableBody"); } -module.exports = {contextAlbumTab_reset, contextAlbumTab_create, contextAlbumTab_activate, contextAlbumTab_deactivate};
\ No newline at end of file +//Testing purposes +export { contextAlbumTab_reset, contextAlbumTab_create, contextAlbumTab_activate, contextAlbumTab_deactivate };
\ No newline at end of file |