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
a7a1a604
Commit
a7a1a604
authored
Mar 09, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Target all build links inside a dropdown. Use jQuery to handle event delegation.
parent
12a0d5a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
merge_request_widget.js
app/assets/javascripts/merge_request_widget.js
+1
-1
mini_pipeline_graph_dropdown.js
app/assets/javascripts/mini_pipeline_graph_dropdown.js
+7
-3
No files found.
app/assets/javascripts/merge_request_widget.js
View file @
a7a1a604
...
...
@@ -287,7 +287,7 @@ import MiniPipelineGraph from './mini_pipeline_graph_dropdown';
MergeRequestWidget
.
prototype
.
initMiniPipelineGraph
=
function
()
{
new
MiniPipelineGraph
({
container
:
'.js-pipeline-inline-mr-widget-graph'
,
container
:
'.js-pipeline-inline-mr-widget-graph
:visible
'
,
}).
bindEvents
();
};
...
...
app/assets/javascripts/mini_pipeline_graph_dropdown.js
View file @
a7a1a604
...
...
@@ -40,9 +40,13 @@ export default class MiniPipelineGraph {
* target the click event of this component.
*/
stopDropdownClickPropagation
()
{
document
.
querySelector
(
`
${
this
.
container
}
.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item`
).
addEventListener
(
'click'
,
(
e
)
=>
{
e
.
stopPropagation
();
});
$
(
document
).
on
(
'click'
,
`
${
this
.
container
}
.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item`
,
(
e
)
=>
{
e
.
stopPropagation
();
},
);
}
/**
...
...
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