From 1cd46e64ce1c7f3143ecdae0c9df331c555416d3 Mon Sep 17 00:00:00 2001
From: Steven Wittens <steven@10.no-reply.drupal.org>
Date: Fri, 14 Apr 2006 02:01:02 +0000
Subject: [PATCH] #57750: Tweaks for textareas inside collapsed fieldsets

---
 misc/collapse.js | 2 +-
 misc/textarea.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc/collapse.js b/misc/collapse.js
index e6905ac087e7..21b730c2da8a 100644
--- a/misc/collapse.js
+++ b/misc/collapse.js
@@ -24,7 +24,7 @@ function collapseAutoAttach() {
         collapseScrollIntoView(this.parentNode.parentNode);
         if (typeof textAreaInit != 'undefined') {
           // Add the grippie to a textarea in a collapsed fieldset.
-          textAreaInit(this.parentNode.parentNode);
+          textAreaAutoAttach(null, this.parentNode.parentNode);
         }
       }
       this.blur();
diff --git a/misc/textarea.js b/misc/textarea.js
index fc98f15448fd..23f24d29d359 100644
--- a/misc/textarea.js
+++ b/misc/textarea.js
@@ -4,7 +4,7 @@ if (isJsEnabled()) {
   addLoadEvent(textAreaInit);
 }
 
-function textAreaInit(parent) {
+function textAreaAutoAttach(event, parent) {
   if (typeof parent == 'undefined') {
     // Attach to all visible textareas.
     textareas = document.getElementsByTagName('textarea');
-- 
GitLab