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
Jérome Perrin
gitlab-ce
Commits
449a84fe
Commit
449a84fe
authored
Aug 10, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed up specs caused by left over elements in the body
parent
80c788bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
app/assets/javascripts/fly_out_nav.js
app/assets/javascripts/fly_out_nav.js
+2
-1
spec/javascripts/fly_out_nav_spec.js
spec/javascripts/fly_out_nav_spec.js
+3
-3
No files found.
app/assets/javascripts/fly_out_nav.js
View file @
449a84fe
...
...
@@ -122,7 +122,8 @@ export const mouseEnterTopItems = (el) => {
export
const
mouseLeaveTopItem
=
(
el
)
=>
{
const
subItems
=
el
.
querySelector
(
'
.sidebar-sub-level-items
'
);
if
(
!
canShowSubItems
()
||
!
canShowActiveSubItems
(
el
)
||
(
subItems
&&
subItems
===
currentOpenMenu
))
return
;
if
(
!
canShowSubItems
()
||
!
canShowActiveSubItems
(
el
)
||
(
subItems
&&
subItems
===
currentOpenMenu
))
return
;
el
.
classList
.
remove
(
IS_OVER_CLASS
);
};
...
...
spec/javascripts/fly_out_nav_spec.js
View file @
449a84fe
...
...
@@ -13,7 +13,7 @@ import {
}
from
'
~/fly_out_nav
'
;
import
bp
from
'
~/breakpoints
'
;
f
describe
(
'
Fly out sidebar navigation
'
,
()
=>
{
describe
(
'
Fly out sidebar navigation
'
,
()
=>
{
let
el
;
let
breakpointSize
=
'
lg
'
;
...
...
@@ -28,7 +28,7 @@ fdescribe('Fly out sidebar navigation', () => {
});
afterEach
(()
=>
{
el
.
remove
()
;
document
.
body
.
innerHTML
=
''
;
breakpointSize
=
'
lg
'
;
mousePos
.
length
=
0
;
});
...
...
@@ -59,7 +59,7 @@ fdescribe('Fly out sidebar navigation', () => {
describe
(
'
getHideSubItemsInterval
'
,
()
=>
{
beforeEach
(()
=>
{
el
.
innerHTML
=
'
<div class="sidebar-sub-level-items" style="position:
absolute; top: 0; left: 100px; height: 20
0px;"></div>
'
;
el
.
innerHTML
=
'
<div class="sidebar-sub-level-items" style="position:
fixed; top: 0; left: 100px; height: 5
0px;"></div>
'
;
});
it
(
'
returns 0 if currentOpenMenu is nil
'
,
()
=>
{
...
...
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