add toast for succesfull change
All checks were successful
Build / build (pull_request) Successful in 56s

This commit is contained in:
AMelonInsideLemon 2025-07-11 18:20:35 +02:00
parent 77a4ccde9d
commit ba6b704456
7 changed files with 24 additions and 20 deletions

View File

@ -1515,7 +1515,7 @@ function doAcquireEvolution() {
setEvolutionProgress([{ ItemType: uniqueName, Rank: permanentEvolutionWeapons.has(uniqueName) ? 0 : 1 }]);
}
$("input[list]").on("input", function () {
$(document).on("input", "input[list]", function () {
$(this).removeClass("is-invalid");
});
@ -2832,29 +2832,27 @@ function handleModularPartsChange(event) {
const modularParts = [];
inputs.forEach(input => {
const key = getKey(input);
if (!getKey(input)) {
input.addClass("is-invalid");
if (!key) {
input.classList.add("is-invalid");
} else {
modularParts.push(key);
}
});
revalidateAuthz().then(() => {
console.log({
category: urlParams.get("productCategory"),
oid: urlParams.get("itemId"),
modularParts
if (inputs.length == modularParts.length) {
revalidateAuthz().then(() => {
$.post({
url: "/custom/changeModularParts?" + window.authz,
contentType: "application/json",
data: JSON.stringify({
category: urlParams.get("productCategory"),
oid: urlParams.get("itemId"),
modularParts
})
}).then(function () {
toast(loc("code_succChange"));
updateInventory();
});
});
$.post({
url: "/custom/changeModularParts?" + window.authz,
contentType: "application/json",
data: JSON.stringify({
category: urlParams.get("productCategory"),
oid: urlParams.get("itemId"),
modularParts
})
}).then(function () {
updateInventory();
});
});
}
}

View File

@ -61,6 +61,7 @@ dict = {
code_pigment: `Pigment`,
code_mature: `Für den Kampf auswachsen lassen`,
code_unmature: `Genetisches Altern zurücksetzen`,
code_succChange: `[UNTRANSLATED] Successfully changed.`,
login_description: `Melde dich mit deinem OpenWF-Account an (denselben Angaben wie im Spiel, wenn du dich mit diesem Server verbindest).`,
login_emailLabel: `E-Mail-Adresse`,
login_passwordLabel: `Passwort`,

View File

@ -60,6 +60,7 @@ dict = {
code_pigment: `Pigment`,
code_mature: `Mature for combat`,
code_unmature: `Regress genetic aging`,
code_succChange: `Successfully changed.`,
login_description: `Login using your OpenWF account credentials (same as in-game when connecting to this server).`,
login_emailLabel: `Email address`,
login_passwordLabel: `Password`,

View File

@ -61,6 +61,7 @@ dict = {
code_pigment: `Pigmento`,
code_mature: `Listo para el combate`,
code_unmature: `Regresar el envejecimiento genético`,
code_succChange: `[UNTRANSLATED] Successfully changed.`,
login_description: `Inicia sesión con las credenciales de tu cuenta OpenWF (las mismas que usas en el juego al conectarte a este servidor).`,
login_emailLabel: `Dirección de correo electrónico`,
login_passwordLabel: `Contraseña`,

View File

@ -61,6 +61,7 @@ dict = {
code_pigment: `Pigment`,
code_mature: `Maturer pour le combat`,
code_unmature: `Régrésser l'âge génétique`,
code_succChange: `[UNTRANSLATED] Successfully changed.`,
login_description: `Connexion avec les informations de connexion OpenWF.`,
login_emailLabel: `Email`,
login_passwordLabel: `Mot de passe`,

View File

@ -61,6 +61,7 @@ dict = {
code_pigment: `Пигмент`,
code_mature: `Подготовить к сражениям`,
code_unmature: `Регрессия генетического старения`,
code_succChange: `Успешно изменено.`,
login_description: `Войдите, используя учетные данные OpenWF (те же, что и в игре при подключении к этому серверу).`,
login_emailLabel: `Адрес электронной почты`,
login_passwordLabel: `Пароль`,

View File

@ -61,6 +61,7 @@ dict = {
code_pigment: `颜料`,
code_mature: `成长并战备`,
code_unmature: `逆转衰老基因`,
code_succChange: `[UNTRANSLATED] Successfully changed.`,
login_description: `使用您的 OpenWF 账户凭证登录(与游戏内连接本服务器时使用的昵称相同).`,
login_emailLabel: `电子邮箱`,
login_passwordLabel: `密码`,