Skip to content
Snippets Groups Projects
Commit e7c046bb authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

decodeURIComponent

parent eeae171a
No related branches found
No related tags found
No related merge requests found
......@@ -223,10 +223,10 @@
function goToShop(id){
var shopItemDetail='<p>Type: <strong>'+$('#'+id).attr('type')+'</strong></p>';
if($("#"+id).attr("displayName") != ""){
shopItemDetail+='<p>Nom personnalisé: <strong>'+decodeURI($("#"+id).attr("displayName"))+'</strong></p>';
shopItemDetail+='<p>Nom personnalisé: <strong>'+decodeURIComponent($("#"+id).attr("displayName"))+'</strong></p>';
}
if($("#"+id).attr("enchants") != ""){
let enchants = JSON.parse(decodeURI($("#"+id).attr("enchants")));
let enchants = JSON.parse(decodeURIComponent($("#"+id).attr("enchants")));
for(const [key, value] of Object.entries(enchants)){
shopItemDetail+='<p>Enchantement: <strong>'+key+'</strong> ('+value+')</p>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment