wip
This commit is contained in:
parent
3d4fccef45
commit
abf1c30ce6
9 changed files with 108 additions and 18 deletions
14
src/web/app/mobile/api/post.ts
Normal file
14
src/web/app/mobile/api/post.ts
Normal 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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue