diff --git a/misc/collapse.js b/misc/collapse.js index e6905ac087e..21b730c2da8 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 fc98f15448f..23f24d29d35 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');