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
4837b6eb
Commit
4837b6eb
authored
7 years ago
by
Sven Marnach
Committed by
Alex Dusenbery
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link "Topic Area" dropdown to the visibility message via aria-describedby.
parent
49a13216
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
common/static/common/js/discussion/views/new_post_view.js
+1
-1
common/static/common/templates/discussion/new-post.underscore
+1
-6
common/static/common/templates/discussion/topic.underscore
+1
-1
No files found.
common/static/common/js/discussion/views/new_post_view.js
View file @
4837b6eb
...
...
@@ -151,7 +151,7 @@
};
NewPostView
.
prototype
.
updateVisibilityMessage
=
function
(
$target
,
forceDivided
)
{
var
$visEl
=
$
(
'
.group-visibility .field-label-text
'
);
var
$visEl
=
$
(
'
#wrapper-visibility-message
'
);
var
visTemplate
=
edx
.
HtmlUtils
.
template
(
$
(
'#new-post-visibility-template'
).
html
());
var
groupName
=
null
;
if
((
$target
&&
$target
.
data
(
'divided'
))
||
forceDivided
)
{
...
...
This diff is collapsed.
Click to expand it.
common/static/common/templates/discussion/new-post.underscore
View file @
4837b6eb
...
...
@@ -30,12 +30,7 @@
</label>
</div>
<% } else if (is_discussion_division_enabled) { %>
<div class="post-field group-visibility">
<label class="field-label">
<!-- Wrapper for the visibility message filled out by a separate template -->
<span class="field-label-text"></span>
</label>
</div>
<div class="post-field group-visibility" id="wrapper-visibility-message"></div>
<% } %>
<div class="post-field">
<label class="field-label">
...
...
This diff is collapsed.
Click to expand it.
common/static/common/templates/discussion/topic.underscore
View file @
4837b6eb
...
...
@@ -6,7 +6,7 @@
<%- gettext("Add your post to a relevant topic to help others find it. (Required)") %>
</div>
<div class="field-input">
<select class="post-topic field-input" aria-describedby="field_help_topic_area" required>
<select class="post-topic field-input" aria-describedby="field_help_topic_area
wrapper-visibility-message
" required>
<%= edx.HtmlUtils.ensureHtml(topics_html) %>
</select>
</div>
...
...
This diff is collapsed.
Click to expand it.
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