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
bec6ea20
Commit
bec6ea20
authored
Aug 17, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed breadcrumbs being undefined
parent
dae629e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
app/assets/javascripts/breadcrumb.js
app/assets/javascripts/breadcrumb.js
+11
-8
No files found.
app/assets/javascripts/breadcrumb.js
View file @
bec6ea20
...
...
@@ -8,6 +8,8 @@ export const addTooltipToEl = (el) => {
export
default
()
=>
{
const
breadcrumbs
=
document
.
querySelector
(
'
.breadcrumbs-list
'
);
if
(
breadcrumbs
)
{
const
topLevelLinks
=
breadcrumbs
.
querySelectorAll
(
'
.breadcrumbs-list > li > a
'
);
const
$expander
=
$
(
'
.js-breadcrumbs-collapsed-expander
'
);
...
...
@@ -18,4 +20,5 @@ export default () => {
$
(
'
.js-breadcrumbs-collapsed-expander
'
,
e
.
currentTarget
).
toggleClass
(
'
open
'
)
.
tooltip
(
'
hide
'
);
});
}
};
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