v1 media bug
This commit is contained in:
		@@ -183,6 +183,10 @@ async function media(b64, type, no, stamped) {
 | 
				
			|||||||
				M.toast({ html: lang.lang_postimg_failupload, displayLength: 5000 })
 | 
									M.toast({ html: lang.lang_postimg_failupload, displayLength: 5000 })
 | 
				
			||||||
				return false
 | 
									return false
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
								$('#imgup').text('')
 | 
				
			||||||
 | 
								$('.toot-btn-group').prop('disabled', false)
 | 
				
			||||||
 | 
								$('select').formSelect()
 | 
				
			||||||
 | 
								$('#imgsel').show()
 | 
				
			||||||
			var img = localStorage.getItem('img')
 | 
								var img = localStorage.getItem('img')
 | 
				
			||||||
			if (json.type.indexOf('image') != -1) {
 | 
								if (json.type.indexOf('image') != -1) {
 | 
				
			||||||
				var html = `<img src="${json[previewer]}" class="preview-img pointer" data-media="${json['id']}" oncontextmenu="deleteImage('${json['id']}')" onclick="altImage('${acct_id}','${json['id']}')" title="${lang.lang_postimg_delete}">`
 | 
									var html = `<img src="${json[previewer]}" class="preview-img pointer" data-media="${json['id']}" oncontextmenu="deleteImage('${json['id']}')" onclick="altImage('${acct_id}','${json['id']}')" title="${lang.lang_postimg_delete}">`
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user