Fix: error when failed upload
This commit is contained in:
parent
dd056f4c05
commit
de06c930ea
|
@ -142,6 +142,12 @@ function media(b64, type, no, stamped) {
|
||||||
var json = httpreq.response
|
var json = httpreq.response
|
||||||
if (this.status !== 200) {
|
if (this.status !== 200) {
|
||||||
setLog(start, this.status, json)
|
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) {
|
if (!json.id) {
|
||||||
todc()
|
todc()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user