Commit 1cd46e64 authored by Steven Wittens's avatar Steven Wittens
Browse files

#57750: Tweaks for textareas inside collapsed fieldsets

parent 062412e1
......@@ -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();
......
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment