BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b7bf9b41
Commit
b7bf9b41
authored
Mar 03, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor Network class
parent
34742710
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
network.js
app/assets/javascripts/network/network.js
+14
-16
network_bundle.js
app/assets/javascripts/network/network_bundle.js
+1
-2
No files found.
app/assets/javascripts/network/network.js
View file @
b7bf9b41
...
...
@@ -2,20 +2,18 @@
import
BranchGraph
from
'./branch_graph'
;
(
function
()
{
this
.
Network
=
(
function
()
{
function
Network
(
opts
)
{
var
vph
;
$
(
"#filter_ref"
).
click
(
function
()
{
return
$
(
this
).
closest
(
'form'
).
submit
();
});
this
.
branch_graph
=
new
BranchGraph
(
$
(
".network-graph"
),
opts
);
vph
=
$
(
window
).
height
()
-
250
;
$
(
'.network-graph'
).
css
({
'height'
:
vph
+
'px'
});
}
export
default
(
function
()
{
function
Network
(
opts
)
{
var
vph
;
$
(
"#filter_ref"
).
click
(
function
()
{
return
$
(
this
).
closest
(
'form'
).
submit
();
});
this
.
branch_graph
=
new
BranchGraph
(
$
(
".network-graph"
),
opts
);
vph
=
$
(
window
).
height
()
-
250
;
$
(
'.network-graph'
).
css
({
'height'
:
vph
+
'px'
});
}
return
Network
;
})();
}).
call
(
window
);
return
Network
;
})();
app/assets/javascripts/network/network_bundle.js
View file @
b7bf9b41
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, quotes, no-var, vars-on-top, camelcase, comma-dangle, consistent-return, max-len */
/* global Network */
/* global ShortcutsNetwork */
require
(
'./network'
)
;
import
Network
from
'./network'
;
(
function
()
{
$
(
function
()
{
...
...
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