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';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ body{margin:0}
|
|||
.flash{background-color:#ff9;border:yellow 1px solid}
|
||||
.weak{opacity:.5}
|
||||
.message-visual img{max-width:100%;max-height:8em}
|
||||
.message-options-showhide::before{content:'\2026'}
|
||||
.message-options{display:none}
|
||||
.create_text{width:100%;height:8em}
|
||||
.follow_button,input[type="submit"]{background-color:#ff3018;color:white;border-radius:3px;border:1px solid #ff3018}
|
||||
.follow_button.following{background-color:transparent;color:#ff3018;border-color:#ff3018}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue