Added the capability to edit messages

This commit is contained in:
Yusur 2019-10-14 19:53:33 +02:00
parent 5e7c6097d4
commit 755e7b70be
9 changed files with 85 additions and 5 deletions

View file

@ -87,4 +87,14 @@ function requestUsernameAvailability(u, callback){
function attachFileInput(){
var fileInput = document.getElementById('fileInputContainer');
fileInput.innerHTML = '<input type="file" accept="image/*" name="file">';
}
}
function showHideMessageOptions(id){
var msgElem = document.getElementById(id);
var options = msgElem.getElementsByClassName('message-options')[0];
if(options.style.display == 'block'){
options.style.display = 'none';
} else {
options.style.display = 'block';
}
}