b
This commit is contained in:
parent
542dd87ea1
commit
f0196808d8
4 changed files with 4 additions and 4 deletions
|
@ -98,6 +98,7 @@ function quote(t) {
|
||||||
text = t.previousElementSibling.innerHTML.replace(/>/g, ">").replace(/\n/g, "\n>")
|
text = t.previousElementSibling.innerHTML.replace(/>/g, ">").replace(/\n/g, "\n>")
|
||||||
textbox.value = '> ' + text + '\n\n@' + t.parentElement.previousElementSibling.innerHTML + ' '
|
textbox.value = '> ' + text + '\n\n@' + t.parentElement.previousElementSibling.innerHTML + ' '
|
||||||
textbox.focus()
|
textbox.focus()
|
||||||
|
autoExpand(textbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
textbox.addEventListener("keyup", function(e) {
|
textbox.addEventListener("keyup", function(e) {
|
||||||
|
|
|
@ -10,8 +10,7 @@ function autoExpand (field) {
|
||||||
+ parseInt(computed.getPropertyValue('padding-top'), 10)
|
+ parseInt(computed.getPropertyValue('padding-top'), 10)
|
||||||
+ field.scrollHeight
|
+ field.scrollHeight
|
||||||
+ parseInt(computed.getPropertyValue('padding-bottom'), 10)
|
+ parseInt(computed.getPropertyValue('padding-bottom'), 10)
|
||||||
+ parseInt(computed.getPropertyValue('border-bottom-width'), 10)
|
+ parseInt(computed.getPropertyValue('border-bottom-width'), 10);
|
||||||
+ 32;
|
|
||||||
|
|
||||||
field.style.height = height + 'px';
|
field.style.height = height + 'px';
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@
|
||||||
<input id="site_name" type="hidden" value="{{SITE_NAME}}">
|
<input id="site_name" type="hidden" value="{{SITE_NAME}}">
|
||||||
<input id="slurreplacer" type="hidden" value="{{v.slurreplacer}}">
|
<input id="slurreplacer" type="hidden" value="{{v.slurreplacer}}">
|
||||||
|
|
||||||
<script data-cfasync="false" src="/chat.js?v=6"></script>
|
<script data-cfasync="false" src="/chat.js?v=7"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
box.scrollTo(0, box.scrollHeight)
|
box.scrollTo(0, box.scrollHeight)
|
||||||
|
|
|
@ -256,7 +256,7 @@
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<script src="/static/assets/js/header.js?v=254"></script>
|
<script src="/static/assets/js/header.js?v=255"></script>
|
||||||
|
|
||||||
{% if v and not err %}
|
{% if v and not err %}
|
||||||
<div id="formkey" class="d-none">{{v.formkey}}</div>
|
<div id="formkey" class="d-none">{{v.formkey}}</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue