summaryrefslogtreecommitdiffstats
path: root/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexAjax.js
diff options
context:
space:
mode:
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexAjax.js')
-rw-r--r--gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexAjax.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexAjax.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexAjax.js
index c241a44..2a75b72 100644
--- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexAjax.js
+++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/ApexAjax.js
@@ -34,9 +34,9 @@ function ajax_get(requestURL, callback) {
});
}
-function ajax_getWithKeyInfo(requestURL, objectType, callback, keyName) {
- var keyName = keyName || "key";
- var keyInfoURL = restRootURL + "/KeyInformation/Get?name=&version=";
+function ajax_getWithKeyInfo(requestURL, objectType, callback, keyNam) {
+ let keyName = keyNam || "key";
+ let keyInfoURL = restRootURL + "/KeyInformation/Get?name=&version=";
ajax_get(keyInfoURL, function(dataKeyInfos) {
ajax_get(requestURL, function(data) {
var keyInfos = [];
@@ -121,3 +121,5 @@ function ajax_delete(requestURL, callback) {
}
});
}
+
+module.exports = {ajax_get, ajax_delete, ajax_post, ajax_put, ajax_getOKOrFail, ajax_getWithKeyInfo}; \ No newline at end of file