[Client:Desktop] Add the 'Insert The Cat' button

This commit is contained in:
syuilo 2017-02-01 04:43:49 +09:00
parent e4a62a48cf
commit a1a2c9c227

View file

@ -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>