diff --git a/misc/collapse.js b/misc/collapse.js index 21b730c2da8a107d5955ba07f4e449782601db75..b3695b51eea7573a014c817f99cf75d766134499 100644 --- a/misc/collapse.js +++ b/misc/collapse.js @@ -22,7 +22,7 @@ function collapseAutoAttach() { toggleClass(this.parentNode.parentNode, 'collapsed'); if (!hasClass(this.parentNode.parentNode, 'collapsed')) { collapseScrollIntoView(this.parentNode.parentNode); - if (typeof textAreaInit != 'undefined') { + if (typeof textAreaAutoAttach != 'undefined') { // Add the grippie to a textarea in a collapsed fieldset. textAreaAutoAttach(null, this.parentNode.parentNode); } diff --git a/misc/textarea.js b/misc/textarea.js index 23f24d29d359dc6cff9d3b2762e730ce85c20187..3e5f4789cfa448fb45cc08957e4b3e529cf88d43 100644 --- a/misc/textarea.js +++ b/misc/textarea.js @@ -1,7 +1,7 @@ // $Id$ if (isJsEnabled()) { - addLoadEvent(textAreaInit); + addLoadEvent(textAreaAutoAttach); } function textAreaAutoAttach(event, parent) {