From 162b1de442bae3f02f14771eeb5f4f32868a97b3 Mon Sep 17 00:00:00 2001 From: alexichi Date: Tue, 10 May 2016 18:34:22 +0200 Subject: continue the use of objects problem --- js/perso.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/perso.js') diff --git a/js/perso.js b/js/perso.js index 44b82eb..7977a9d 100644 --- a/js/perso.js +++ b/js/perso.js @@ -26,7 +26,8 @@ function levelUp(xp){ data.maxHP+=2; } //need to send the xp to the server - sendRequest("craftmine.php", "op=updatePerso&hp="+data.hp+"&maxHP="+data.maxHP+"&xp="+data.xp+"&lv="+data.level+"&power="+data.power+"&bonusPower="+bonusPower, function(){ + sendRequest("craftmine.php", "op=updatePerso&hp="+data.hp+"&maxHP="+data.maxHP+"&xp="+data.xp+"&lv="+data.level + +"&power="+data.power+"&bonusPower="+bonusPower, function(){ displayPerso(data.hp,data.maxHP,data.maxHP,data.xp,data.level,data.power,data.bonusPower); }); } -- cgit v1.2.3-54-g00ecf