Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
e0f3b66c
Commit
e0f3b66c
authored
Jul 11, 2016
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review changes
parent
359ec427
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
app/assets/javascripts/projects_list.js.coffee
app/assets/javascripts/projects_list.js.coffee
+3
-3
app/assets/javascripts/shortcuts.js.coffee
app/assets/javascripts/shortcuts.js.coffee
+6
-5
No files found.
app/assets/javascripts/projects_list.js.coffee
View file @
e0f3b66c
...
...
@@ -6,9 +6,9 @@
initSearch
:
->
projectsListFilter
=
$
(
'.projects-list-filter'
)
projectsListFilter
.
on
'keyup'
,
(
e
)
=>
clearTimeout
(
@
timer
)
if
@
timer
@
timer
=
setTimeout
(
ProjectsList
.
filterResults
,
500
)
if
projectsListFilter
.
val
()
isnt
''
debounceFilter
=
_
.
debounce
ProjectsList
.
filterResults
,
500
projectsListFilter
.
on
'keyup'
,
(
e
)
->
debounceFilter
(
)
if
projectsListFilter
.
val
()
isnt
''
filterResults
:
->
$
(
'.projects-list-holder'
).
fadeTo
(
250
,
0.5
)
...
...
app/assets/javascripts/shortcuts.js.coffee
View file @
e0f3b66c
...
...
@@ -2,10 +2,10 @@ class @Shortcuts
constructor
:
(
skipResetBindings
)
->
@
enabledHelp
=
[]
Mousetrap
.
reset
()
if
not
skipResetBindings
Mousetrap
.
bind
(
'?'
,
@
onToggleHelp
)
Mousetrap
.
bind
(
's'
,
Shortcuts
.
focusSearch
)
Mousetrap
.
bind
'f'
,
@
focusFilter
Mousetrap
.
bind
([
'ctrl+shift+p'
,
'command+shift+p'
],
@
toggleMarkdownPreview
)
Mousetrap
.
bind
'?'
,
@
onToggleHelp
Mousetrap
.
bind
's'
,
Shortcuts
.
focusSearch
Mousetrap
.
bind
'f'
,
(
e
)
=>
@
focusFilter
e
Mousetrap
.
bind
[
'ctrl+shift+p'
,
'command+shift+p'
],
@
toggleMarkdownPreview
Mousetrap
.
bind
(
't'
,
->
Turbolinks
.
visit
(
findFileURL
))
if
findFileURL
?
onToggleHelp
:
(
e
)
=>
...
...
@@ -34,7 +34,8 @@ class @Shortcuts
)
focusFilter
:
(
e
)
->
$
(
'input[type=search]'
,
'.nav-controls .block-controls'
).
focus
()
@
filterInput
?=
$
(
'input[type=search]'
,
'.nav-controls'
)
@
filterInput
.
focus
()
e
.
preventDefault
()
@
focusSearch
:
(
e
)
->
...
...
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