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
96622a10
Commit
96622a10
authored
Aug 03, 2021
by
Jannik Lehmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete DOMContentLoadedEventListener
parent
fdecd2cd
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
32 additions
and
38 deletions
+32
-38
app/assets/javascripts/pages/admin/groups/edit/index.js
app/assets/javascripts/pages/admin/groups/edit/index.js
+1
-1
app/assets/javascripts/pages/admin/serverless/domains/index.js
...ssets/javascripts/pages/admin/serverless/domains/index.js
+13
-15
app/assets/javascripts/pages/groups/settings/badges/index.js
app/assets/javascripts/pages/groups/settings/badges/index.js
+1
-3
app/assets/javascripts/pages/import/github/status/index.js
app/assets/javascripts/pages/import/github/status/index.js
+2
-4
app/assets/javascripts/pages/projects/compare/show/index.js
app/assets/javascripts/pages/projects/compare/show/index.js
+4
-6
app/assets/javascripts/pages/projects/cycle_analytics/show/index.js
.../javascripts/pages/projects/cycle_analytics/show/index.js
+1
-1
app/assets/javascripts/pages/projects/graphs/show/index.js
app/assets/javascripts/pages/projects/graphs/show/index.js
+1
-1
app/assets/javascripts/pages/projects/import/jira/index.js
app/assets/javascripts/pages/projects/import/jira/index.js
+1
-1
app/assets/javascripts/pages/projects/issues/edit/index.js
app/assets/javascripts/pages/projects/issues/edit/index.js
+1
-1
app/assets/javascripts/pages/projects/jobs/terminal/index.js
app/assets/javascripts/pages/projects/jobs/terminal/index.js
+1
-1
app/assets/javascripts/pages/projects/pages_domains/new/index.js
...ets/javascripts/pages/projects/pages_domains/new/index.js
+1
-1
app/assets/javascripts/pages/projects/pages_domains/show/index.js
...ts/javascripts/pages/projects/pages_domains/show/index.js
+1
-1
app/assets/javascripts/pages/projects/pipeline_schedules/index/index.js
...ascripts/pages/projects/pipeline_schedules/index/index.js
+4
-2
No files found.
app/assets/javascripts/pages/admin/groups/edit/index.js
View file @
96622a10
import
initFilePickers
from
'
~/file_pickers
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initFilePickers
);
initFilePickers
(
);
app/assets/javascripts/pages/admin/serverless/domains/index.js
View file @
96622a10
import
initSettingsPanels
from
'
~/settings_panels
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
// Initialize expandable settings panels
initSettingsPanels
();
// Initialize expandable settings panels
initSettingsPanels
();
const
domainCard
=
document
.
querySelector
(
'
.js-domain-cert-show
'
);
const
domainForm
=
document
.
querySelector
(
'
.js-domain-cert-inputs
'
);
const
domainReplaceButton
=
document
.
querySelector
(
'
.js-domain-cert-replace-btn
'
);
const
domainSubmitButton
=
document
.
querySelector
(
'
.js-serverless-domain-submit
'
);
const
domainCard
=
document
.
querySelector
(
'
.js-domain-cert-show
'
);
const
domainForm
=
document
.
querySelector
(
'
.js-domain-cert-inputs
'
);
const
domainReplaceButton
=
document
.
querySelector
(
'
.js-domain-cert-replace-btn
'
);
const
domainSubmitButton
=
document
.
querySelector
(
'
.js-serverless-domain-submit
'
);
if
(
domainReplaceButton
&&
domainCard
&&
domainForm
)
{
domainReplaceButton
.
addEventListener
(
'
click
'
,
()
=>
{
domainCard
.
classList
.
add
(
'
hidden
'
);
domainForm
.
classList
.
remove
(
'
hidden
'
);
domainSubmitButton
.
removeAttribute
(
'
disabled
'
);
});
}
});
if
(
domainReplaceButton
&&
domainCard
&&
domainForm
)
{
domainReplaceButton
.
addEventListener
(
'
click
'
,
()
=>
{
domainCard
.
classList
.
add
(
'
hidden
'
);
domainForm
.
classList
.
remove
(
'
hidden
'
);
domainSubmitButton
.
removeAttribute
(
'
disabled
'
);
});
}
app/assets/javascripts/pages/groups/settings/badges/index.js
View file @
96622a10
...
...
@@ -5,6 +5,4 @@ import Translate from '~/vue_shared/translate';
Vue
.
use
(
Translate
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
mountBadgeSettings
(
GROUP_BADGE
);
});
mountBadgeSettings
(
GROUP_BADGE
);
app/assets/javascripts/pages/import/github/status/index.js
View file @
96622a10
import
mountImportProjectsTable
from
'
~/import_entities/import_projects
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
mountElement
=
document
.
getElementById
(
'
import-projects-mount-element
'
);
const
mountElement
=
document
.
getElementById
(
'
import-projects-mount-element
'
);
mountImportProjectsTable
(
mountElement
);
});
mountImportProjectsTable
(
mountElement
);
app/assets/javascripts/pages/projects/compare/show/index.js
View file @
96622a10
...
...
@@ -5,9 +5,7 @@ import initCompareSelector from '~/projects/compare';
initCompareSelector
();
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
Diff
();
// eslint-disable-line no-new
const
paddingTop
=
16
;
initChangesDropdown
(
document
.
querySelector
(
'
.navbar-gitlab
'
).
offsetHeight
-
paddingTop
);
GpgBadges
.
fetch
();
});
new
Diff
();
// eslint-disable-line no-new
const
paddingTop
=
16
;
initChangesDropdown
(
document
.
querySelector
(
'
.navbar-gitlab
'
).
offsetHeight
-
paddingTop
);
GpgBadges
.
fetch
();
app/assets/javascripts/pages/projects/cycle_analytics/show/index.js
View file @
96622a10
import
initCycleAnalytics
from
'
~/cycle_analytics
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initCycleAnalytics
);
initCycleAnalytics
(
);
app/assets/javascripts/pages/projects/graphs/show/index.js
View file @
96622a10
import
initContributorsGraphs
from
'
~/contributors
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initContributorsGraphs
);
initContributorsGraphs
(
);
app/assets/javascripts/pages/projects/import/jira/index.js
View file @
96622a10
import
mountJiraImportApp
from
'
~/jira_import
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
mountJiraImportApp
);
mountJiraImportApp
(
);
app/assets/javascripts/pages/projects/issues/edit/index.js
View file @
96622a10
import
initForm
from
'
ee_else_ce/pages/projects/issues/form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
initForm
(
);
app/assets/javascripts/pages/projects/jobs/terminal/index.js
View file @
96622a10
import
initTerminal
from
'
~/terminal/
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initTerminal
);
initTerminal
(
);
app/assets/javascripts/pages/projects/pages_domains/new/index.js
View file @
96622a10
import
initForm
from
'
~/pages/projects/pages_domains/form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
initForm
(
);
app/assets/javascripts/pages/projects/pages_domains/show/index.js
View file @
96622a10
import
initForm
from
'
~/pages/projects/pages_domains/form
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
initForm
(
);
app/assets/javascripts/pages/projects/pipeline_schedules/index/index.js
View file @
96622a10
import
Vue
from
'
vue
'
;
import
PipelineSchedulesCallout
from
'
../shared/components/pipeline_schedules_callout.vue
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
function
initPipelineSchedules
()
{
const
el
=
document
.
getElementById
(
'
pipeline-schedules-callout
'
);
if
(
!
el
)
{
...
...
@@ -21,4 +21,6 @@ document.addEventListener('DOMContentLoaded', () => {
return
createElement
(
PipelineSchedulesCallout
);
},
});
});
}
initPipelineSchedules
();
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