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
3289bd8f
Commit
3289bd8f
authored
Feb 23, 2021
by
Jannik Lehmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete DOMContentLoadedEventListener
parent
52135410
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
app/assets/javascripts/pages/projects/new/index.js
app/assets/javascripts/pages/projects/new/index.js
+20
-22
No files found.
app/assets/javascripts/pages/projects/new/index.js
View file @
3289bd8f
...
...
@@ -3,28 +3,26 @@ import { __ } from '~/locale';
import
initProjectVisibilitySelector
from
'
../../../project_visibility
'
;
import
initProjectNew
from
'
../../../projects/project_new
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initProjectVisibilitySelector
();
initProjectNew
.
bindEvents
();
initProjectVisibilitySelector
();
initProjectNew
.
bindEvents
();
import
(
/* webpackChunkName: 'experiment_new_project_creation' */
'
../../../projects/experiment_new_project_creation
'
)
.
then
((
m
)
=>
{
const
el
=
document
.
querySelector
(
'
.js-experiment-new-project-creation
'
);
import
(
/* webpackChunkName: 'experiment_new_project_creation' */
'
../../../projects/experiment_new_project_creation
'
)
.
then
((
m
)
=>
{
const
el
=
document
.
querySelector
(
'
.js-experiment-new-project-creation
'
);
if
(
!
el
)
{
return
;
}
if
(
!
el
)
{
return
;
}
const
config
=
{
hasErrors
:
'
hasErrors
'
in
el
.
dataset
,
isCiCdAvailable
:
'
isCiCdAvailable
'
in
el
.
dataset
,
newProjectGuidelines
:
el
.
dataset
.
newProjectGuidelines
,
};
m
.
default
(
el
,
config
);
})
.
catch
(()
=>
{
createFlash
(
__
(
'
An error occurred while loading project creation UI
'
));
});
});
const
config
=
{
hasErrors
:
'
hasErrors
'
in
el
.
dataset
,
isCiCdAvailable
:
'
isCiCdAvailable
'
in
el
.
dataset
,
newProjectGuidelines
:
el
.
dataset
.
newProjectGuidelines
,
};
m
.
default
(
el
,
config
);
})
.
catch
(()
=>
{
createFlash
(
__
(
'
An error occurred while loading project creation UI
'
));
});
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