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
6266dcf1
Commit
6266dcf1
authored
Feb 03, 2015
by
Chris
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6820 from edx/clrux/forums-assign-regions
Assign regions/landmarks for easier navigation
parents
3b6af2df
66f909cd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
19 deletions
+19
-19
common/static/coffee/src/discussion/discussion_module_view.coffee
+2
-2
common/static/coffee/src/discussion/discussion_router.coffee
+2
-3
common/static/coffee/src/discussion/views/discussion_thread_view.coffee
+1
-0
lms/templates/discussion/_underscore_templates.html
+11
-11
lms/templates/discussion/index.html
+3
-3
No files found.
common/static/coffee/src/discussion/discussion_module_view.coffee
View file @
6266dcf1
...
...
@@ -29,7 +29,7 @@ if Backbone?
if
@
showed
@
newPostForm
.
slideDown
(
300
)
else
@
newPostForm
.
show
()
@
newPostForm
.
show
()
.
focus
()
@
toggleDiscussionBtn
.
addClass
(
'shown'
)
@
toggleDiscussionBtn
.
find
(
'.button-text'
).
html
(
gettext
(
"Hide Discussion"
))
@
$
(
"section.discussion"
).
slideDown
()
...
...
@@ -128,7 +128,7 @@ if Backbone?
@
renderPagination
(
response
.
num_pages
)
if
@
isWaitingOnNewPost
@
newPostForm
.
show
()
@
newPostForm
.
show
()
.
focus
()
addThread
:
(
thread
,
collection
,
options
)
=>
# TODO: When doing pagination, this will need to repaginate. Perhaps just reload page 1?
...
...
common/static/coffee/src/discussion/discussion_router.coffee
View file @
6266dcf1
...
...
@@ -79,13 +79,12 @@ if Backbone?
$
(
'.forum-content'
).
fadeOut
(
duration
:
200
complete
:
=>
@
newPost
.
fadeIn
(
200
)
$
(
'.new-post-title'
).
focus
()
@
newPost
.
fadeIn
(
200
).
focus
()
)
hideNewPost
:
=>
@
newPost
.
fadeOut
(
duration
:
200
complete
:
=>
$
(
'.forum-content'
).
fadeIn
(
200
)
$
(
'.forum-content'
).
fadeIn
(
200
)
.
find
(
'.thread-wrapper'
).
focus
()
)
common/static/coffee/src/discussion/views/discussion_thread_view.coffee
View file @
6266dcf1
...
...
@@ -144,6 +144,7 @@ if Backbone?
)
@
trigger
"thread:responses:rendered"
@
loadedResponses
=
true
$
(
".thread-wrapper"
).
focus
()
# Sends focus to the conversation once the thread finishes loading
error
:
(
xhr
,
textStatus
)
=>
return
if
textStatus
==
'abort'
...
...
lms/templates/discussion/_underscore_templates.html
View file @
6266dcf1
...
...
@@ -8,7 +8,7 @@
## common/static/coffee/spec/discussion_spec_helper.coffee is changed and regenerated, whenever this one changes.
<script
aria-hidden=
"true"
type=
"text/template"
id=
"thread-template"
>
<
article
class
=
"discussion-article"
data
-
id
=
"${'<%- id %>'}"
>
<
div
class
=
"thread-wrapper"
>
<
div
class
=
"thread-wrapper"
tabindex
=
"-1"
>
<
div
class
=
"forum-thread-main-wrapper"
>
<
div
class
=
"thread-content-wrapper"
><
/div
>
<
div
class
=
"post-extended-content"
>
...
...
@@ -392,13 +392,13 @@
<
span
class
=
"field-label-text"
>
##
Translators
:
This
labels
the
selector
for
which
group
of
students
can
view
a
post
$
{
_
(
"Visible To:"
)}
<
/span><select class="field-input js-group-select" name="group_id" ${'<% if
(
!is_commentable_cohorted
)
{ %>'}disabled${'<% } %>'}
>
<
/span><select
aria-describedby="field_help_visible_to"
class="field-input js-group-select" name="group_id" ${'<% if
(
!is_commentable_cohorted
)
{ %>'}disabled${'<% } %>'}
>
<
option
value
=
""
>
$
{
_
(
"All Groups"
)}
<
/option
>
$
{
'<% _.each(cohort_options, function(opt) { %>'
}
<
option
value
=
"${'<%= opt.value %>'}"
$
{
'<% if (opt.selected) { %>selected<% } %>'
}
>
$
{
'<%- opt.text %>'
}
<
/option
>
$
{
'<% }); %>'
}
<
/select
>
<
/label><div class="field-help"
>
<
/label><div class="field-help"
id="field_help_visible_to"
>
$
{
_
(
"Discussion admins, moderators, and TAs can make their posts visible to all students or specify a single cohort."
)}
<
/div
>
<
/div
>
...
...
@@ -406,8 +406,8 @@
<
div
class
=
"post-field"
>
<
label
class
=
"field-label"
>
<
span
class
=
"sr"
>
$
{
_
(
"Title:"
)}
<
/span
>
<
input
type
=
"text"
class
=
"field-input js-post-title"
name
=
"title"
placeholder
=
"${_('Title')}"
>
<
/label><span class="field-help"
>
<
input
aria
-
describedby
=
"field_help_title"
type
=
"text"
class
=
"field-input js-post-title"
name
=
"title"
placeholder
=
"${_('Title')}"
>
<
/label><span class="field-help"
id="field_help_title"
>
$
{
_
(
"Add a clear and descriptive title to encourage participation."
)}
<
/span
>
<
/div
>
...
...
@@ -444,21 +444,21 @@
##
Translators
:
This
is
the
label
for
a
control
to
##
select
a
forum
post
type
$
{
_
(
"Post type:"
)}
<
/span><fieldset class="field-input"
>
<
input
type
=
"radio"
name
=
"${"
<%=
form_id
%>
"}-post-type"
class
=
"post-type-input"
id
=
"${"
<%=
form_id
%>
"}-post-type-question"
value
=
"question"
>
<
/span><fieldset class="field-input">
<legend class="sr">${_
(
"Post type:"
)
}</
legend
>
<
input
aria
-
describedby
=
"field_help_post_type"
type
=
"radio"
name
=
"${"
<%=
form_id
%>
"}-post-type"
class
=
"post-type-input"
id
=
"${"
<%=
form_id
%>
"}-post-type-question"
value
=
"question"
>
<
label
for
=
"${"
<%=
form_id
%>
"}-post-type-question"
class
=
"post-type-label"
>
<
i
class
=
"icon fa fa-question"
><
/i
>
##
Translators
:
This
is
a
forum
post
type
$
{
_
(
"Question"
)}
<
/label
>
<
input
type
=
"radio"
name
=
"${"
<%=
form_id
%>
"}-post-type"
class
=
"post-type-input"
id
=
"${"
<%=
form_id
%>
"}-post-type-discussion"
value
=
"discussion"
checked
>
<
input
aria
-
describedby
=
"field_help_post_type"
type
=
"radio"
name
=
"${"
<%=
form_id
%>
"}-post-type"
class
=
"post-type-input"
id
=
"${"
<%=
form_id
%>
"}-post-type-discussion"
value
=
"discussion"
checked
>
<
label
for
=
"${"
<%=
form_id
%>
"}-post-type-discussion"
class
=
"post-type-label"
>
<
i
class
=
"icon fa fa-comments"
><
/i
>
##
Translators
:
This
is
a
forum
post
type
$
{
_
(
"Discussion"
)}
<
/label
>
<
/fieldset
>
<
/div><span class="field-help"
>
<
/div><span class="field-help"
id="field_help_post_type"
>
$
{
_
(
"Questions raise issues that need answers. Discussions share ideas and start conversations."
)}
<
/span
>
<
/div
>
...
...
@@ -489,12 +489,12 @@
<
div
class
=
"topic-menu-wrapper"
>
<
label
class
=
"topic-filter-label"
>
<
span
class
=
"sr"
>
$
{
_
(
"Filter topics"
)}
<
/span
>
<
input
type
=
"text"
class
=
"topic-filter-input"
placeholder
=
"${_('Filter topics')}"
>
<
input
aria
-
describedby
=
"field_help_topic_area"
type
=
"text"
class
=
"topic-filter-input"
placeholder
=
"${_('Filter topics')}"
>
<
/label
>
<
ul
class
=
"topic-menu"
role
=
"menu"
>
$
{
'<%= topics_html %>'
}
<
/ul
>
<
/div
>
<
/div
>
<
/div><span class="field-help"
>
<
/div><span class="field-help"
id="field_help_topic_area"
>
$
{
_
(
"Add your post to a relevant topic to help others find it."
)}
<
/span
>
</script>
...
...
lms/templates/discussion/index.html
View file @
6266dcf1
...
...
@@ -35,9 +35,9 @@
data-user-cohort-id=
"${user_cohort}"
data-course-settings=
"${course_settings}"
>
<div
class=
"discussion-body"
>
<div
class=
"forum-nav"
></div>
<div
class=
"discussion-column"
>
<article
class=
"new-post-article"
style=
"display: none"
></article>
<div
class=
"forum-nav"
role=
"complementary"
aria-label=
"Discussion thread list"
></div>
<div
class=
"discussion-column"
role=
"main"
aria-label=
"Discussion"
id=
"discussion-column"
>
<article
class=
"new-post-article"
style=
"display: none"
tabindex=
"-1"
aria-label=
"New topic form"
></article>
<div
class=
"forum-content"
></div>
</div>
</div>
...
...
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