This commit is contained in:
syuilo 2018-02-22 02:00:30 +09:00
parent 3d4fccef45
commit abf1c30ce6
9 changed files with 108 additions and 18 deletions

View file

@ -0,0 +1,14 @@
export default opts => {
const app = document.getElementById('app');
app.style.display = 'none';
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);
};