Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
3e3ad439
Commit
3e3ad439
authored
Sep 27, 2013
by
Greg Price
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1161 from edx/gprice/forums-labels
Add accessible labels for forum post body inputs
parents
44b4204a
f4971e75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
lms/static/coffee/src/customwmd.coffee
+3
-1
No files found.
lms/static/coffee/src/customwmd.coffee
View file @
3e3ad439
...
...
@@ -131,9 +131,11 @@ $ ->
initialText
=
$elem
.
html
()
$elem
.
empty
()
_append
=
appended_id
||
""
wmdInputId
=
"wmd-input
#{
_append
}
"
$wmdPanel
=
$
(
"<div>"
).
addClass
(
"wmd-panel"
)
.
append
(
$
(
"<div>"
).
attr
(
"id"
,
"wmd-button-bar
#{
_append
}
"
))
.
append
(
$
(
"<textarea>"
).
addClass
(
"wmd-input"
).
attr
(
"id"
,
"wmd-input
#{
_append
}
"
).
html
(
initialText
))
.
append
(
$
(
"<label>"
).
addClass
(
"sr"
).
attr
(
"for"
,
wmdInputId
).
text
(
"Post body"
))
.
append
(
$
(
"<textarea>"
).
addClass
(
"wmd-input"
).
attr
(
"id"
,
wmdInputId
).
html
(
initialText
))
.
append
(
$
(
"<div>"
).
attr
(
"id"
,
"wmd-preview
#{
_append
}
"
).
addClass
(
"wmd-panel wmd-preview"
))
$elem
.
append
(
$wmdPanel
)
...
...
Write
Preview
Markdown
is supported
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