From de06c930ea46f6617adc6fb502acf113f578f491 Mon Sep 17 00:00:00 2001 From: cutls Date: Thu, 23 Jan 2020 00:29:49 +0900 Subject: [PATCH] Fix: error when failed upload --- app/js/post/img.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/js/post/img.js b/app/js/post/img.js index 035e8489..b35f44c0 100644 --- a/app/js/post/img.js +++ b/app/js/post/img.js @@ -142,6 +142,12 @@ function media(b64, type, no, stamped) { var json = httpreq.response if (this.status !== 200) { setLog(start, this.status, json) + $('.toot-btn-group').prop('disabled', false) + $('select').formSelect() + $('#mec').text(lang.lang_there) + M.toast({ html: this.status + ':' +json, displayLength: 2000 }) + $('#imgup').text('') + $('#imgsel').show() } if (!json.id) { todc()