mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Improve readability
This commit is contained in:
parent
5e8557a1e2
commit
dc41a49777
1 changed files with 3 additions and 1 deletions
|
@ -11,10 +11,12 @@ module.exports = me => {
|
|||
openPostForm: opts => {
|
||||
const app = document.getElementById('app');
|
||||
app.style.display = 'none';
|
||||
const form = riot.mount(document.body.appendChild(document.createElement('mk-post-form')), opts)[0];
|
||||
|
||||
function recover() {
|
||||
app.style.display = 'block';
|
||||
}
|
||||
|
||||
const form = riot.mount(document.body.appendChild(document.createElement('mk-post-form')), opts)[0];
|
||||
form
|
||||
.on('cancel', recover)
|
||||
.on('post', recover);
|
||||
|
|
Loading…
Add table
Reference in a new issue