From cd2c86b3010c6da0b3e62666bed167bd2b47656c Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Thu, 12 Sep 2024 14:48:51 +0100 Subject: [PATCH] MDL-83116 output: apply appropriate icon class to collapsible region. --- lib/javascript-static.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/javascript-static.js b/lib/javascript-static.js index 3b60787881d..c74d5a4a865 100644 --- a/lib/javascript-static.js +++ b/lib/javascript-static.js @@ -116,12 +116,12 @@ M.util.CollapsibleRegion = function(Y, id, userpref, strtooltip) { } if (this.div.hasClass('collapsed')) { // Add the correct image and record the YUI node created in the process - this.icon = Y.Node.create(''); + this.icon = Y.Node.create(''); // Shrink the div as it is collapsed by default this.div.setStyle('height', caption.get('offsetHeight')+'px'); } else { // Add the correct image and record the YUI node created in the process - this.icon = Y.Node.create(''); + this.icon = Y.Node.create(''); } a.append(this.icon);