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
Tatuya Kamada
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
app/assets/javascripts/merge_request_widget.js
app/assets/javascripts/merge_request_widget.js
+1
-1
app/assets/javascripts/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';
...
@@ -287,7 +287,7 @@ import MiniPipelineGraph from './mini_pipeline_graph_dropdown';
MergeRequestWidget
.
prototype
.
initMiniPipelineGraph
=
function
()
{
MergeRequestWidget
.
prototype
.
initMiniPipelineGraph
=
function
()
{
new
MiniPipelineGraph
({
new
MiniPipelineGraph
({
container
:
'
.js-pipeline-inline-mr-widget-graph
'
,
container
:
'
.js-pipeline-inline-mr-widget-graph
:visible
'
,
}).
bindEvents
();
}).
bindEvents
();
};
};
...
...
app/assets/javascripts/mini_pipeline_graph_dropdown.js
View file @
a7a1a604
...
@@ -40,9 +40,13 @@ export default class MiniPipelineGraph {
...
@@ -40,9 +40,13 @@ export default class MiniPipelineGraph {
* target the click event of this component.
* target the click event of this component.
*/
*/
stopDropdownClickPropagation
()
{
stopDropdownClickPropagation
()
{
document
.
querySelector
(
`
${
this
.
container
}
.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item`
).
addEventListener
(
'
click
'
,
(
e
)
=>
{
$
(
document
).
on
(
e
.
stopPropagation
();
'
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