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

view/templates/item/compose.tpl

index a9cd94186326150098b2b65333823568d8ce9c93..a161f34529092bff271b8ba100b693f32d64a6e0 100644 (file)
        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";
-               });
+               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";
+                       // Set initial height
+                       textarea.style.height = "auto";
+                       textarea.style.height = (textarea.scrollHeight) + "px";
+               });
        });
-});
 </script>