diff --git a/public/script.js b/public/script.js index ade0b9696..6c258b7e0 100644 --- a/public/script.js +++ b/public/script.js @@ -10242,6 +10242,11 @@ jQuery(async function () { $('.zoomed_avatar_container').izoomify(); + $(`.zoomed_avatar[forChar="${charname}"] img`).on('click', (e) => { + $(`.zoomed_avatar[forChar="${charname}"]`).fadeOut(); + setTimeout(function() { $(`.zoomed_avatar[forChar="${charname}"]`).remove(); }, 410); + }); + $(`.zoomed_avatar[forChar="${charname}"] img`).on('dragstart', (e) => { console.log('saw drag on avatar!'); e.preventDefault();