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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
60ed8eb8
Commit
60ed8eb8
authored
Nov 02, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move shortcut handles to `shortcuts_epic.js`
parent
23960c59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
ee/app/assets/javascripts/epics/epic_show/sidebar_context.js
ee/app/assets/javascripts/epics/epic_show/sidebar_context.js
+0
-9
No files found.
ee/app/assets/javascripts/epics/epic_show/sidebar_context.js
View file @
60ed8eb8
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
Mousetrap
from
'
mousetrap
'
;
import
Cookies
from
'
js-cookie
'
;
import
Cookies
from
'
js-cookie
'
;
import
bp
from
'
~/breakpoints
'
;
import
bp
from
'
~/breakpoints
'
;
...
@@ -7,10 +6,6 @@ export default class SidebarContext {
...
@@ -7,10 +6,6 @@ export default class SidebarContext {
constructor
()
{
constructor
()
{
const
$issuableSidebar
=
$
(
'
.js-issuable-update
'
);
const
$issuableSidebar
=
$
(
'
.js-issuable-update
'
);
Mousetrap
.
bind
(
'
l
'
,
()
=>
SidebarContext
.
openSidebarDropdown
(
$issuableSidebar
.
find
(
'
.js-labels-block
'
)),
);
$issuableSidebar
$issuableSidebar
.
off
(
'
click
'
,
'
.js-sidebar-dropdown-toggle
'
)
.
off
(
'
click
'
,
'
.js-sidebar-dropdown-toggle
'
)
.
on
(
'
click
'
,
'
.js-sidebar-dropdown-toggle
'
,
function
onClickEdit
(
e
)
{
.
on
(
'
click
'
,
'
.js-sidebar-dropdown-toggle
'
,
function
onClickEdit
(
e
)
{
...
@@ -46,8 +41,4 @@ export default class SidebarContext {
...
@@ -46,8 +41,4 @@ export default class SidebarContext {
}
}
});
});
}
}
static
openSidebarDropdown
(
$block
)
{
$block
.
find
(
'
.js-sidebar-dropdown-toggle
'
).
trigger
(
'
click
'
);
}
}
}
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