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
5ef108a1
Commit
5ef108a1
authored
Feb 10, 2021
by
Jannik Lehmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete DOMContentLoadedEventListener
parent
5dabb296
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
app/assets/javascripts/pages/projects/merge_requests/creations/index.js
...ascripts/pages/projects/merge_requests/creations/index.js
+1
-1
app/assets/javascripts/pages/projects/merge_requests/creations/new/index.js
...ipts/pages/projects/merge_requests/creations/new/index.js
+11
-13
No files found.
app/assets/javascripts/pages/projects/merge_requests/creations/index.js
View file @
5ef108a1
import
initMergeRequest
from
'
~/pages/projects/merge_requests/init_merge_request
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initMergeRequest
);
initMergeRequest
(
);
app/assets/javascripts/pages/projects/merge_requests/creations/new/index.js
View file @
5ef108a1
...
...
@@ -2,16 +2,14 @@ import MergeRequest from '~/merge_request';
import
initPipelines
from
'
~/commit/pipelines/pipelines_bundle
'
;
import
initCompare
from
'
./compare
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
mrNewCompareNode
=
document
.
querySelector
(
'
.js-merge-request-new-compare
'
);
if
(
mrNewCompareNode
)
{
initCompare
(
mrNewCompareNode
);
}
else
{
const
mrNewSubmitNode
=
document
.
querySelector
(
'
.js-merge-request-new-submit
'
);
// eslint-disable-next-line no-new
new
MergeRequest
({
action
:
mrNewSubmitNode
.
dataset
.
mrSubmitAction
,
});
initPipelines
();
}
});
const
mrNewCompareNode
=
document
.
querySelector
(
'
.js-merge-request-new-compare
'
);
if
(
mrNewCompareNode
)
{
initCompare
(
mrNewCompareNode
);
}
else
{
const
mrNewSubmitNode
=
document
.
querySelector
(
'
.js-merge-request-new-submit
'
);
// eslint-disable-next-line no-new
new
MergeRequest
({
action
:
mrNewSubmitNode
.
dataset
.
mrSubmitAction
,
});
initPipelines
();
}
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