Avatars thumbs improved

This commit is contained in:
SillyLossy
2023-03-24 21:28:17 +02:00
parent 1bf3377a70
commit 73b76d3974
2 changed files with 3 additions and 3 deletions

View File

@ -2546,9 +2546,9 @@ function select_selected_character(chid) {
//$("#avatar_div").css("display", "none");
var this_avatar = default_avatar;
if (characters[chid].avatar != "none") {
this_avatar = "characters/" + encodeURIComponent(characters[chid].avatar);
this_avatar = "/thumbnail?type=avatar&file=" + encodeURIComponent(characters[chid].avatar);
}
$("#avatar_load_preview").attr("src", this_avatar + "?" + Date.now());
$("#avatar_load_preview").attr("src", this_avatar + "&" + Date.now());
$("#name_div").css("display", "none");
$("#form_create").attr("actiontype", "editcharacter");