Commit bb807685 authored by Jake Dallimore's avatar Jake Dallimore
Browse files

MDL-35978 comments: fix for comments block which has no toggler

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