Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plugins bot
moodle-plugins-snapshots
Commits
bb807685
Commit
bb807685
authored
Jan 31, 2017
by
Jake Dallimore
Browse files
MDL-35978 comments: fix for comments block which has no toggler
parent
af65270e
Changes
1
Show whitespace changes
Inline
Side-by-side
comment/comment.js
View file @
bb807685
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment