Fix: error when failed upload

This commit is contained in:
cutls 2020-01-23 00:29:49 +09:00
parent dd056f4c05
commit de06c930ea

View File

@ -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()