mirror of
https://github.com/friendica/friendica
synced 2024-11-18 00:23:47 +00:00
Update compose.tpl
Corrected indentation
This commit is contained in:
parent
974c8fad9b
commit
da293cfbd2
1 changed files with 10 additions and 6 deletions
|
@ -103,13 +103,17 @@
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
dzFactory.setupDropzone('#dropzone-{{$id}}', 'comment-edit-text-{{$id}}');
|
dzFactory.setupDropzone('#dropzone-{{$id}}', 'comment-edit-text-{{$id}}');
|
||||||
document.addEventListener("DOMContentLoaded", function() {
|
|
||||||
var textareas = document.querySelectorAll(".expandable-textarea");
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
textareas.forEach(function(textarea) {
|
var textareas = document.querySelectorAll(".expandable-textarea");
|
||||||
textarea.addEventListener("input", function() {
|
|
||||||
this.style.height = "auto";
|
textareas.forEach(function(textarea) {
|
||||||
this.style.height = (this.scrollHeight) + "px";
|
textarea.addEventListener("input", function() {
|
||||||
|
this.style.height = "auto";
|
||||||
|
this.style.height = (this.scrollHeight) + "px";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Set initial height
|
||||||
textarea.style.height = "auto";
|
textarea.style.height = "auto";
|
||||||
textarea.style.height = (textarea.scrollHeight) + "px";
|
textarea.style.height = (textarea.scrollHeight) + "px";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue