]> git.mxchange.org Git - friendica.git/commitdiff
Update compose.tpl
authorloma-one <44441246+loma-one@users.noreply.github.com>
Sat, 3 Aug 2024 05:41:59 +0000 (07:41 +0200)
committerGitHub <noreply@github.com>
Sat, 3 Aug 2024 05:41:59 +0000 (07:41 +0200)
Corrected indentation

view/templates/item/compose.tpl

index 12b64fea2752544e0e6c90737c9277ad4887458d..a9cd94186326150098b2b65333823568d8ce9c93 100644 (file)
 </div>
 <script>
        dzFactory.setupDropzone('#dropzone-{{$id}}', 'comment-edit-text-{{$id}}');
-               document.addEventListener("DOMContentLoaded", function() {
-                       var textareas = document.querySelectorAll(".expandable-textarea");
-                       textareas.forEach(function(textarea) {
-                       textarea.addEventListener("input", function() {
-                               this.style.height = "auto";
-                               this.style.height = (this.scrollHeight) + "px";
+
+       document.addEventListener("DOMContentLoaded", function() {
+               var textareas = document.querySelectorAll(".expandable-textarea");
+
+       textareas.forEach(function(textarea) {
+               textarea.addEventListener("input", function() {
+                       this.style.height = "auto";
+                       this.style.height = (this.scrollHeight) + "px";
                });
+
+               // Set initial height
                textarea.style.height = "auto";
                textarea.style.height = (textarea.scrollHeight) + "px";
        });