summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-01 04:43:49 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-01 04:43:49 +0900
commitfda8fea9b94212badb27dfee8f95ff6dff6a7adc (patch)
treef2c8a2f4d96f7d1dba0f402bbebd3cd18eac93be /src
parentFix: Insert missing hyphen (diff)
downloadsharkey-fda8fea9b94212badb27dfee8f95ff6dff6a7adc.tar.gz
sharkey-fda8fea9b94212badb27dfee8f95ff6dff6a7adc.tar.bz2
sharkey-fda8fea9b94212badb27dfee8f95ff6dff6a7adc.zip
[Client:Desktop] Add the 'Insert The Cat' button
Diffstat (limited to 'src')
-rw-r--r--src/web/app/desktop/tags/post-form.tag5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web/app/desktop/tags/post-form.tag b/src/web/app/desktop/tags/post-form.tag
index b8cd8d3d77..c5cf094034 100644
--- a/src/web/app/desktop/tags/post-form.tag
+++ b/src/web/app/desktop/tags/post-form.tag
@@ -12,6 +12,7 @@
<mk-uploader ref="uploader"></mk-uploader>
<button ref="upload" title="PCからファイルを添付" onclick={ selectFile }><i class="fa fa-upload"></i></button>
<button ref="drive" title="ドライブからファイルを添付" onclick={ selectFileFromDrive }><i class="fa fa-cloud"></i></button>
+ <button class="cat" title="Insert The Cat" onclick={ cat }><i class="fa fa-smile-o"></i></button>
<p class="text-count { over: refs.text.value.length > 500 }">のこり{ 500 - refs.text.value.length }文字</p>
<button class={ wait: wait } ref="submit" disabled={ wait || (refs.text.value.length == 0 && files.length == 0) } onclick={ post }>{ wait ? '投稿中' : opts.reply ? '返信' : '投稿' }
<mk-ellipsis if={ wait }></mk-ellipsis>
@@ -237,6 +238,7 @@
[ref='upload']
[ref='drive']
+ .cat
display inline-block
cursor pointer
padding 0
@@ -425,5 +427,8 @@
.then ~>
@wait = false
@update!
+
+ @cat = ~>
+ @refs.text.value = @refs.text.value + '(=^・・^=)'
</script>
</mk-post-form>