diff --git a/public/js/util.js b/public/js/util.js index 96a143f..1dd7fd3 100644 --- a/public/js/util.js +++ b/public/js/util.js @@ -66,7 +66,7 @@ const alertModal = (title, message) => { /** * HABILITA O ENVIO DE ARQUIVO DE IMAGENS E APRESENTA UMA MODAL PARA APRESENTAÇÃO DA IMAGEM SELECIONADA */ - const startSendImage = () => { +const startSendImage = () => { modalStart() $("#uploadimage").on('change', function(){ const file = new FileReader(); @@ -86,6 +86,16 @@ const alertModal = (title, message) => { }) } +/** + * HABILITA O ENVIO DE ARQUIVO DE IMAGENS E APRESENTA UMA MODAL PARA APRESENTAÇÃO DA IMAGEM SELECIONADA + */ + const openImgModal = (link) => { + modalStart() + $('#myImg').remove() + $('.modal-content-body').append(``) + $('#modalselect').show() +} + const startSendFile = () => { modalStart() $("#uploadfile").on('change', function(){ @@ -319,14 +329,10 @@ function recorderVoice () { } if(obj.type == 'image' || obj.type == 'sticker'){ - console.log(obj) $('.chat-window').append(`
- - - -
+
${converdata(Date.now())}
`)