diff options
author | rstular <rok@stular.eu> | 2020-05-14 10:51:54 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-14 10:51:54 +0200 |
commit | 35a6ab71d3fa3fb11e147322ca813d03f7c55974 (patch) | |
tree | 0a2572b224a37c2bb738bdc1e7475ec0c6e9e3db /js | |
parent | Refactoring (diff) | |
download | beziapp-35a6ab71d3fa3fb11e147322ca813d03f7c55974.tar beziapp-35a6ab71d3fa3fb11e147322ca813d03f7c55974.tar.gz beziapp-35a6ab71d3fa3fb11e147322ca813d03f7c55974.tar.bz2 beziapp-35a6ab71d3fa3fb11e147322ca813d03f7c55974.tar.lz beziapp-35a6ab71d3fa3fb11e147322ca813d03f7c55974.tar.xz beziapp-35a6ab71d3fa3fb11e147322ca813d03f7c55974.tar.zst beziapp-35a6ab71d3fa3fb11e147322ca813d03f7c55974.zip |
Diffstat (limited to '')
-rw-r--r-- | js/gsec.js | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -82,14 +82,13 @@ class gsec { }, crossDomain: true, url: getUrl, - cache: false, type: "GET", dataType: "html", - success: (getData) => { + success: (data, textStatus, request) => { if (useDiffAction == true) { useDiffAction = getUrl; } - this.parseAndPost(getData, params, formId, useDiffAction).then((value) => { + this.parseAndPost(data, params, formId, useDiffAction).then((value) => { resolve(value); }); }, @@ -113,7 +112,7 @@ class gsec { if (response.code === 302) { resolve(true); } else { - if (!!(parsed.getElementById("lblMsg"))) { // če obstaja lblMsg (napaka pri prijavi) + if (!(parsed.getElementById("lblMsg"))) { // če obstaja lblMsg (napaka pri prijavi) reject(new Error(GSEC_ERR_LOGIN)); } else if (!(parsed.getElementById("ctl00_lblLoginName"))) { // če ni ctl00_lblLoginName nismo na Default.aspx reject(new Error(GSEC_ERR_LOGIN)); @@ -133,7 +132,6 @@ class gsec { }, crossDomain: true, url: GSE_URL + "WS_Gim/wsGimSisUtils.asmx/GetSessionData", - cache: false, type: "POST", dataType: "json", contentType: "application/json", @@ -171,7 +169,6 @@ class gsec { }, crossDomain: true, url: GSE_URL + "Page_Gim/Uporabnik/modSporociloPrejemniki.aspx/NajdiOsebePrejemniki", - cache: false, type: "POST", dataType: "json", contentType: "application/json", @@ -337,7 +334,6 @@ class gsec { }, crossDomain: true, url: GSE_URL + "Page_Gim/Uporabnik/Sporocila.aspx/DeleteMessage", - cache: false, type: "POST", dataType: "json", contentType: "application/json", |