summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-18 13:26:27 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-18 13:26:27 +0900
commitcedeba580ee3846230161408f603f72fe169dadf (patch)
tree782724db4f822807a3f86ac83b1b96bbcb2001ce /src/web
parent:v: (diff)
downloadsharkey-cedeba580ee3846230161408f603f72fe169dadf.tar.gz
sharkey-cedeba580ee3846230161408f603f72fe169dadf.tar.bz2
sharkey-cedeba580ee3846230161408f603f72fe169dadf.zip
Improve readability
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/mobile/mixins.js4
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);