Fix to close modal & reply input
This commit is contained in:
parent
c536582889
commit
fa36bb72aa
3 changed files with 14 additions and 13 deletions
|
@ -488,6 +488,14 @@ function init_postbox(model) {
|
|||
find_node("button[role='send']").addEventListener("click", onclick_send);
|
||||
find_node("button[role='toggle-cw']")
|
||||
.addEventListener("click", onclick_toggle_cw);
|
||||
// Do reply box
|
||||
// TODO refactor & cleanup reply modal init
|
||||
find_node("#reply-content").addEventListener("input", oninput_post);
|
||||
find_node("#reply-button").addEventListener("click", onclick_reply);
|
||||
}
|
||||
async function onclick_reply(ev) {
|
||||
// Temp method
|
||||
do_send_reply();
|
||||
}
|
||||
async function onclick_send(ev) {
|
||||
const el = view_get_timeline_el();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue