mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 06:01:04 +00:00
fix
This commit is contained in:
parent
4ec0d79860
commit
963cc63949
|
@ -110,6 +110,7 @@ var getLocalApplications = function() {
|
||||||
if (applicationId) {
|
if (applicationId) {
|
||||||
HTTP.create()
|
HTTP.create()
|
||||||
.setContentType("application/json-patch+json")
|
.setContentType("application/json-patch+json")
|
||||||
|
.setBearerAuth(token)
|
||||||
.setRequestBody(JSON.stringify(data))
|
.setRequestBody(JSON.stringify(data))
|
||||||
.patch(apiUrl + "/netsolid/items/applications/" + applicationId, onSuccess)
|
.patch(apiUrl + "/netsolid/items/applications/" + applicationId, onSuccess)
|
||||||
;
|
;
|
||||||
|
@ -258,8 +259,7 @@ if (typeof(token) !== "undefined") {
|
||||||
console.log("ok");
|
console.log("ok");
|
||||||
FILE.writeFile("token.txt", res.data.token, "utf-8");
|
FILE.writeFile("token.txt", res.data.token, "utf-8");
|
||||||
FILE.writeFile("userid.txt", res.data.user.id, "utf-8");
|
FILE.writeFile("userid.txt", res.data.user.id, "utf-8");
|
||||||
|
OldBrowser.reload();
|
||||||
window.location.reload();
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
;
|
;
|
||||||
|
|
|
@ -233,3 +233,10 @@ exports.start = function(callback) {
|
||||||
exports.addScript("app/assets/js/jquery.html5-placeholder-shim-5a87f05.js");
|
exports.addScript("app/assets/js/jquery.html5-placeholder-shim-5a87f05.js");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
// exports.reload()
|
||||||
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
exports.reload = function() {
|
||||||
|
window.location.reload();
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user