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
c4495e4d
Commit
c4495e4d
authored
Sep 05, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed drop filter bug
parent
4b7e5b7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
lms/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+1
-8
lms/static/js/discussions-temp.js
+1
-1
lms/static/sass/_discussion.scss
+8
-0
No files found.
lms/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
c4495e4d
...
...
@@ -162,10 +162,8 @@ class @DiscussionThreadListView extends Backbone.View
@
collection
.
reset
(
response
.
discussion_data
)
@
displayedCollection
.
reset
(
@
collection
.
models
)
setActiveItem
:
(
event
)
->
if
event
.
which
==
13
console
.
log
(
$
(
".browse-topic-drop-menu-wrapper .focused"
))
$
(
".browse-topic-drop-menu-wrapper .focused"
).
click
()
return
if
event
.
which
!=
40
&&
event
.
which
!=
38
...
...
@@ -174,9 +172,7 @@ class @DiscussionThreadListView extends Backbone.View
items
=
$
(
".browse-topic-drop-menu-wrapper a"
).
not
(
".hidden"
)
totalItems
=
items
.
length
index
=
$
(
".browse-topic-drop-menu-wrapper .focused"
).
parent
().
index
()
# index = parseInt($(".browse-topic-drop-menu-wrapper").attr("data-focused")) || 0
index
=
$
(
".browse-topic-drop-menu-wrapper .focused"
).
parent
().
index
()
if
event
.
which
==
40
index
=
index
+
1
...
...
@@ -185,11 +181,8 @@ class @DiscussionThreadListView extends Backbone.View
if
index
==
totalItems
index
=
0
console
.
log
(
index
)
$
(
".browse-topic-drop-menu-wrapper .focused"
).
removeClass
(
"focused"
)
$
(
".browse-topic-drop-menu-wrapper li"
).
eq
(
index
).
find
(
'a'
).
addClass
(
"focused"
)
# $(items[index]).addClass("focused")
$
(
".browse-topic-drop-menu-wrapper"
).
attr
(
"data-focused"
,
index
)
lms/static/js/discussions-temp.js
View file @
c4495e4d
...
...
@@ -128,7 +128,7 @@ function filterDrop(e) {
var
$items
=
$drop
.
find
(
'a'
);
if
(
query
.
length
==
0
)
{
$items
.
show
(
);
$items
.
removeClass
(
'hidden'
);
return
;
}
...
...
lms/static/sass/_discussion.scss
View file @
c4495e4d
...
...
@@ -492,6 +492,14 @@ body.discussion {
mark
{
background-color
:
#38a8e5
;
}
section
.user-profile
{
@extend
.sidebar
;
...
...
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