Skip to content
Snippets Groups Projects
Commit cedeba58 authored by syuilo's avatar syuilo
Browse files

Improve readability

parent fde6ed60
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment