PR #5: Add equipment screen functionality (merges main with dev)
This commit is contained in:
parent
ce38573ad7
commit
429a1eb6ff
411 changed files with 17956 additions and 779 deletions
12
logout.js
12
logout.js
|
|
@ -1,20 +1,10 @@
|
|||
$(document).ready(function () {
|
||||
const form = $("#logout-form");
|
||||
if (typeof CONFIG === 'undefined') {
|
||||
alert("CRITICAL ERROR: config.js not loaded before logout.js");
|
||||
return;
|
||||
}
|
||||
|
||||
const apiBase = CONFIG.API_BASE_URL;
|
||||
const targetAction = apiBase.replace(/\/$/, "") + "/spfn/logout";
|
||||
$("#logout_frontend_origin").val(window.location.origin);
|
||||
form.attr("action", targetAction);
|
||||
form.attr("action", "/api/v1/spfn/logout");
|
||||
|
||||
console.log("Form action set to: " + targetAction);
|
||||
|
||||
form.submit(function(e) {
|
||||
alert("Submitting to: " + $(this).attr("action"));
|
||||
|
||||
const submitBtn = $(":submit", this);
|
||||
submitBtn.prop("disabled", true).css("opacity", "0.5");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue