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
7ece1120
Commit
7ece1120
authored
5 years ago
by
Marvin Karegyeya
Committed by
Mike Greiling
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove IIFEs from network.js
parent
21298dd9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
app/assets/javascripts/pages/projects/network/network.js
app/assets/javascripts/pages/projects/network/network.js
+14
-17
changelogs/unreleased/Remove-IIFEs-from-network-js.yml
changelogs/unreleased/Remove-IIFEs-from-network-js.yml
+5
-0
No files found.
app/assets/javascripts/pages/projects/network/network.js
View file @
7ece1120
/* eslint-disable func-names, no-var */
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
BranchGraph
from
'
../../../network/branch_graph
'
;
import
BranchGraph
from
'
../../../network/branch_graph
'
;
export
default
(
function
()
{
const
vph
=
$
(
window
).
height
()
-
250
;
function
Network
(
opts
)
{
var
vph
;
export
default
class
Network
{
$
(
'
#filter_ref
'
).
click
(
function
()
{
constructor
(
opts
)
{
return
$
(
this
)
this
.
opts
=
opts
;
.
closest
(
'
form
'
)
this
.
filter_ref
=
$
(
'
#filter_ref
'
);
.
submit
();
this
.
network_graph
=
$
(
'
.network-graph
'
);
});
this
.
filter_ref
.
click
(()
=>
this
.
submit
());
this
.
branch_graph
=
new
BranchGraph
(
$
(
'
.network-graph
'
),
opts
);
this
.
branch_graph
=
new
BranchGraph
(
this
.
network_graph
,
this
.
opts
);
vph
=
$
(
window
).
height
()
-
250
;
this
.
network_graph
.
css
({
height
:
`
${
vph
}
px`
});
$
(
'
.network-graph
'
).
css
({
height
:
`
${
vph
}
px`
,
});
}
}
return
Network
;
submit
()
{
})();
return
this
.
filter_ref
.
closest
(
'
form
'
).
submit
();
}
}
This diff is collapsed.
Click to expand it.
changelogs/unreleased/Remove-IIFEs-from-network-js.yml
0 → 100644
View file @
7ece1120
---
title
:
Removed IIFEs from network.js file
merge_request
:
19254
author
:
nuwe1
type
:
other
This diff is collapsed.
Click to expand it.
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