summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-10 17:55:04 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-10 17:55:04 +0900
commit40ddb9c417ffed06593517ae42a042fe12e66a99 (patch)
treee711064b818de49b9d1347cec48bd8a41b8f6eec /src
parentMerge pull request #262 from syuilo/greenkeeper/css-loader-0.27.1 (diff)
downloadmisskey-40ddb9c417ffed06593517ae42a042fe12e66a99.tar.gz
misskey-40ddb9c417ffed06593517ae42a042fe12e66a99.tar.bz2
misskey-40ddb9c417ffed06593517ae42a042fe12e66a99.zip
wipo #259
Diffstat (limited to 'src')
-rw-r--r--src/web/app/desktop/tags/post-form.tag5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/app/desktop/tags/post-form.tag b/src/web/app/desktop/tags/post-form.tag
index bc99e0c0a2..983d35405a 100644
--- a/src/web/app/desktop/tags/post-form.tag
+++ b/src/web/app/desktop/tags/post-form.tag
@@ -338,6 +338,7 @@
if (draft) {
draft = JSON.parse(draft);
this.refs.text.value = draft.text;
+ this.update();
}
});
@@ -352,6 +353,7 @@
this.clear = () => {
this.refs.text.value = '';
this.files = [];
+ this.poll = false;
this.trigger('change-files');
this.update();
};
@@ -452,8 +454,9 @@
reply_to_id: this.inReplyToPost ? this.inReplyToPost.id : undefined,
poll: this.poll ? this.refs.poll.get() : undefined
}).then(data => {
- localStorage.removeItem('post-draft');
+ this.clear();
this.trigger('post');
+ localStorage.removeItem('post-draft');
this.notify(this.inReplyToPost ? '返信しました!' : '投稿しました!');
}).catch(err => {
this.notify('投稿できませんでした');