Commit 88107dc9 authored by Andrew Nicols's avatar Andrew Nicols
Browse files

Merge branch 'MDL-35978-master-blockfix' of https://github.com/snake/moodle

parents b462c655 bb807685
......@@ -358,7 +358,9 @@ M.core_comment = {
if (img) {
img.set('src', M.util.image_url('t/expanded', 'core'));
}
commenttoggler.setAttribute('aria-expanded', 'true');
if (commenttoggler) {
commenttoggler.setAttribute('aria-expanded', 'true');
}
} else {
// hide
container.setStyle('display', 'none');
......@@ -372,7 +374,9 @@ M.core_comment = {
if (ta) {
ta.set('value','');
}
commenttoggler.setAttribute('aria-expanded', 'false');
if (commenttoggler) {
commenttoggler.setAttribute('aria-expanded', 'false');
}
}
if (ta) {
//toggle_textarea.apply(ta, [false]);
......
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