add toast for succesfull change
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 56s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 56s
				
			This commit is contained in:
		
							parent
							
								
									77a4ccde9d
								
							
						
					
					
						commit
						ba6b704456
					
				@ -1515,7 +1515,7 @@ function doAcquireEvolution() {
 | 
				
			|||||||
    setEvolutionProgress([{ ItemType: uniqueName, Rank: permanentEvolutionWeapons.has(uniqueName) ? 0 : 1 }]);
 | 
					    setEvolutionProgress([{ ItemType: uniqueName, Rank: permanentEvolutionWeapons.has(uniqueName) ? 0 : 1 }]);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$("input[list]").on("input", function () {
 | 
					$(document).on("input", "input[list]", function () {
 | 
				
			||||||
    $(this).removeClass("is-invalid");
 | 
					    $(this).removeClass("is-invalid");
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -2832,29 +2832,27 @@ function handleModularPartsChange(event) {
 | 
				
			|||||||
    const modularParts = [];
 | 
					    const modularParts = [];
 | 
				
			||||||
    inputs.forEach(input => {
 | 
					    inputs.forEach(input => {
 | 
				
			||||||
        const key = getKey(input);
 | 
					        const key = getKey(input);
 | 
				
			||||||
        if (!getKey(input)) {
 | 
					        if (!key) {
 | 
				
			||||||
            input.addClass("is-invalid");
 | 
					            input.classList.add("is-invalid");
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            modularParts.push(key);
 | 
					            modularParts.push(key);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    revalidateAuthz().then(() => {
 | 
					    if (inputs.length == modularParts.length) {
 | 
				
			||||||
        console.log({
 | 
					        revalidateAuthz().then(() => {
 | 
				
			||||||
            category: urlParams.get("productCategory"),
 | 
					            $.post({
 | 
				
			||||||
            oid: urlParams.get("itemId"),
 | 
					                url: "/custom/changeModularParts?" + window.authz,
 | 
				
			||||||
            modularParts
 | 
					                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();
 | 
					 | 
				
			||||||
        });
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -61,6 +61,7 @@ dict = {
 | 
				
			|||||||
    code_pigment: `Pigment`,
 | 
					    code_pigment: `Pigment`,
 | 
				
			||||||
    code_mature: `Für den Kampf auswachsen lassen`,
 | 
					    code_mature: `Für den Kampf auswachsen lassen`,
 | 
				
			||||||
    code_unmature: `Genetisches Altern zurücksetzen`,
 | 
					    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_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_emailLabel: `E-Mail-Adresse`,
 | 
				
			||||||
    login_passwordLabel: `Passwort`,
 | 
					    login_passwordLabel: `Passwort`,
 | 
				
			||||||
 | 
				
			|||||||
@ -60,6 +60,7 @@ dict = {
 | 
				
			|||||||
    code_pigment: `Pigment`,
 | 
					    code_pigment: `Pigment`,
 | 
				
			||||||
    code_mature: `Mature for combat`,
 | 
					    code_mature: `Mature for combat`,
 | 
				
			||||||
    code_unmature: `Regress genetic aging`,
 | 
					    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_description: `Login using your OpenWF account credentials (same as in-game when connecting to this server).`,
 | 
				
			||||||
    login_emailLabel: `Email address`,
 | 
					    login_emailLabel: `Email address`,
 | 
				
			||||||
    login_passwordLabel: `Password`,
 | 
					    login_passwordLabel: `Password`,
 | 
				
			||||||
 | 
				
			|||||||
@ -61,6 +61,7 @@ dict = {
 | 
				
			|||||||
    code_pigment: `Pigmento`,
 | 
					    code_pigment: `Pigmento`,
 | 
				
			||||||
    code_mature: `Listo para el combate`,
 | 
					    code_mature: `Listo para el combate`,
 | 
				
			||||||
    code_unmature: `Regresar el envejecimiento genético`,
 | 
					    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_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_emailLabel: `Dirección de correo electrónico`,
 | 
				
			||||||
    login_passwordLabel: `Contraseña`,
 | 
					    login_passwordLabel: `Contraseña`,
 | 
				
			||||||
 | 
				
			|||||||
@ -61,6 +61,7 @@ dict = {
 | 
				
			|||||||
    code_pigment: `Pigment`,
 | 
					    code_pigment: `Pigment`,
 | 
				
			||||||
    code_mature: `Maturer pour le combat`,
 | 
					    code_mature: `Maturer pour le combat`,
 | 
				
			||||||
    code_unmature: `Régrésser l'âge génétique`,
 | 
					    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_description: `Connexion avec les informations de connexion OpenWF.`,
 | 
				
			||||||
    login_emailLabel: `Email`,
 | 
					    login_emailLabel: `Email`,
 | 
				
			||||||
    login_passwordLabel: `Mot de passe`,
 | 
					    login_passwordLabel: `Mot de passe`,
 | 
				
			||||||
 | 
				
			|||||||
@ -61,6 +61,7 @@ dict = {
 | 
				
			|||||||
    code_pigment: `Пигмент`,
 | 
					    code_pigment: `Пигмент`,
 | 
				
			||||||
    code_mature: `Подготовить к сражениям`,
 | 
					    code_mature: `Подготовить к сражениям`,
 | 
				
			||||||
    code_unmature: `Регрессия генетического старения`,
 | 
					    code_unmature: `Регрессия генетического старения`,
 | 
				
			||||||
 | 
					    code_succChange: `Успешно изменено.`,
 | 
				
			||||||
    login_description: `Войдите, используя учетные данные OpenWF (те же, что и в игре при подключении к этому серверу).`,
 | 
					    login_description: `Войдите, используя учетные данные OpenWF (те же, что и в игре при подключении к этому серверу).`,
 | 
				
			||||||
    login_emailLabel: `Адрес электронной почты`,
 | 
					    login_emailLabel: `Адрес электронной почты`,
 | 
				
			||||||
    login_passwordLabel: `Пароль`,
 | 
					    login_passwordLabel: `Пароль`,
 | 
				
			||||||
 | 
				
			|||||||
@ -61,6 +61,7 @@ dict = {
 | 
				
			|||||||
    code_pigment: `颜料`,
 | 
					    code_pigment: `颜料`,
 | 
				
			||||||
    code_mature: `成长并战备`,
 | 
					    code_mature: `成长并战备`,
 | 
				
			||||||
    code_unmature: `逆转衰老基因`,
 | 
					    code_unmature: `逆转衰老基因`,
 | 
				
			||||||
 | 
					    code_succChange: `[UNTRANSLATED] Successfully changed.`,
 | 
				
			||||||
    login_description: `使用您的 OpenWF 账户凭证登录(与游戏内连接本服务器时使用的昵称相同).`,
 | 
					    login_description: `使用您的 OpenWF 账户凭证登录(与游戏内连接本服务器时使用的昵称相同).`,
 | 
				
			||||||
    login_emailLabel: `电子邮箱`,
 | 
					    login_emailLabel: `电子邮箱`,
 | 
				
			||||||
    login_passwordLabel: `密码`,
 | 
					    login_passwordLabel: `密码`,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user