diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-18 13:26:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-18 13:26:27 +0900 |
| commit | cedeba580ee3846230161408f603f72fe169dadf (patch) | |
| tree | 782724db4f822807a3f86ac83b1b96bbcb2001ce /src | |
| parent | :v: (diff) | |
| download | sharkey-cedeba580ee3846230161408f603f72fe169dadf.tar.gz sharkey-cedeba580ee3846230161408f603f72fe169dadf.tar.bz2 sharkey-cedeba580ee3846230161408f603f72fe169dadf.zip | |
Improve readability
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/mobile/mixins.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/app/mobile/mixins.js b/src/web/app/mobile/mixins.js index be0e0d155e..98601a1072 100644 --- a/src/web/app/mobile/mixins.js +++ b/src/web/app/mobile/mixins.js @@ -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); |