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
f58d920b
Commit
f58d920b
authored
Dec 13, 2016
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide the navigation bar when sorting won't work
parent
9bbf9639
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
common/static/common/js/discussion/views/discussion_inline_view.js
+2
-1
common/static/common/js/discussion/views/discussion_thread_list_view.js
+4
-0
lms/djangoapps/discussion/static/discussion/js/views/discussion_user_profile_view.js
+2
-1
No files found.
common/static/common/js/discussion/views/discussion_inline_view.js
View file @
f58d920b
...
@@ -100,7 +100,8 @@
...
@@ -100,7 +100,8 @@
this
.
threadListView
=
new
DiscussionThreadListView
({
this
.
threadListView
=
new
DiscussionThreadListView
({
el
:
this
.
$
(
'.inline-threads'
),
el
:
this
.
$
(
'.inline-threads'
),
collection
:
self
.
discussion
,
collection
:
self
.
discussion
,
courseSettings
:
self
.
course_settings
courseSettings
:
self
.
course_settings
,
hideRefineBar
:
true
// TODO: re-enable the search/filter bar when it works correctly
});
});
this
.
threadListView
.
render
();
this
.
threadListView
.
render
();
...
...
common/static/common/js/discussion/views/discussion_thread_list_view.js
View file @
f58d920b
...
@@ -91,6 +91,7 @@
...
@@ -91,6 +91,7 @@
DiscussionThreadListView
.
prototype
.
initialize
=
function
(
options
)
{
DiscussionThreadListView
.
prototype
.
initialize
=
function
(
options
)
{
var
self
=
this
;
var
self
=
this
;
this
.
courseSettings
=
options
.
courseSettings
;
this
.
courseSettings
=
options
.
courseSettings
;
this
.
hideRefineBar
=
options
.
hideRefineBar
;
this
.
supportsActiveThread
=
options
.
supportsActiveThread
;
this
.
supportsActiveThread
=
options
.
supportsActiveThread
;
this
.
displayedCollection
=
new
Discussion
(
this
.
collection
.
models
,
{
this
.
displayedCollection
=
new
Discussion
(
this
.
collection
.
models
,
{
pages
:
this
.
collection
.
pages
pages
:
this
.
collection
.
pages
...
@@ -221,6 +222,9 @@
...
@@ -221,6 +222,9 @@
}
}
this
.
showMetadataAccordingToSort
();
this
.
showMetadataAccordingToSort
();
this
.
renderMorePages
();
this
.
renderMorePages
();
if
(
this
.
hideRefineBar
)
{
this
.
$
(
'.forum-nav-refine-bar'
).
addClass
(
'is-hidden'
);
}
this
.
trigger
(
'threads:rendered'
);
this
.
trigger
(
'threads:rendered'
);
};
};
...
...
lms/djangoapps/discussion/static/discussion/js/views/discussion_user_profile_view.js
View file @
f58d920b
...
@@ -38,7 +38,8 @@
...
@@ -38,7 +38,8 @@
this
.
discussionThreadListView
=
new
DiscussionThreadListView
({
this
.
discussionThreadListView
=
new
DiscussionThreadListView
({
collection
:
this
.
discussion
,
collection
:
this
.
discussion
,
el
:
this
.
$
(
'.inline-threads'
),
el
:
this
.
$
(
'.inline-threads'
),
courseSettings
:
this
.
courseSettings
courseSettings
:
this
.
courseSettings
,
hideRefineBar
:
true
// TODO: re-enable the search/filter bar when it works correctly
}).
render
();
}).
render
();
this
.
discussionThreadListView
.
on
(
'thread:selected'
,
_
.
bind
(
this
.
navigateToThread
,
this
));
this
.
discussionThreadListView
.
on
(
'thread:selected'
,
_
.
bind
(
this
.
navigateToThread
,
this
));
...
...
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