blob: e0fae4d8ca6b1d1f38dcaccb07549a8513553d09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import * as riot from 'riot';
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);
};
|