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
264bba94
Commit
264bba94
authored
Jan 17, 2014
by
Jim Abramson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2217 from edx/bug/jsa/for-203
expand forums' search text input whenever the field receives focus.
parents
42c543b7
22d6c680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+2
-1
No files found.
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
264bba94
...
@@ -5,6 +5,7 @@ if Backbone?
...
@@ -5,6 +5,7 @@ if Backbone?
"click .home"
:
"goHome"
"click .home"
:
"goHome"
"click .browse"
:
"toggleTopicDrop"
"click .browse"
:
"toggleTopicDrop"
"keydown .post-search-field"
:
"performSearch"
"keydown .post-search-field"
:
"performSearch"
"focus .post-search-field"
:
"showSearch"
"click .sort-bar a"
:
"sortThreads"
"click .sort-bar a"
:
"sortThreads"
"click .browse-topic-drop-menu"
:
"filterTopic"
"click .browse-topic-drop-menu"
:
"filterTopic"
"click .browse-topic-drop-search-input"
:
"ignoreClick"
"click .browse-topic-drop-search-input"
:
"ignoreClick"
...
@@ -209,7 +210,7 @@ if Backbone?
...
@@ -209,7 +210,7 @@ if Backbone?
@
$
(
".search"
).
addClass
(
'is-open'
)
@
$
(
".search"
).
addClass
(
'is-open'
)
@
$
(
".browse"
).
removeClass
(
'is-open'
)
@
$
(
".browse"
).
removeClass
(
'is-open'
)
setTimeout
(
->
@
$
(
".post-search-field"
).
focus
()),
200
setTimeout
(
->
@
$
(
".post-search-field"
).
focus
()),
200
unless
@
$
(
".post-search-field"
).
is
(
":focus"
)
goHome
:
->
goHome
:
->
@
template
=
_
.
template
(
$
(
"#discussion-home"
).
html
())
@
template
=
_
.
template
(
$
(
"#discussion-home"
).
html
())
...
...
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