#57750: Tweaks for textareas inside collapsed fieldsets

4.7.x
Steven Wittens 2006-04-14 02:01:02 +00:00
parent 062412e1a4
commit 1cd46e64ce
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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');