Added the capability to edit messages
This commit is contained in:
parent
5e7c6097d4
commit
755e7b70be
9 changed files with 85 additions and 5 deletions
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue