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
Boxiang Sun
gitlab-ce
Commits
19f14cfe
Commit
19f14cfe
authored
Apr 10, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove sideeffects, init per page
parent
eae553f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
app/assets/javascripts/milestone.js
app/assets/javascripts/milestone.js
+0
-1
app/assets/javascripts/pages/dashboard/milestones/show/index.js
...sets/javascripts/pages/dashboard/milestones/show/index.js
+2
-0
app/assets/javascripts/pages/groups/milestones/show/index.js
app/assets/javascripts/pages/groups/milestones/show/index.js
+6
-1
No files found.
app/assets/javascripts/milestone.js
View file @
19f14cfe
...
@@ -5,7 +5,6 @@ import { mouseenter, debouncedMouseleave, togglePopover } from './shared/popover
...
@@ -5,7 +5,6 @@ import { mouseenter, debouncedMouseleave, togglePopover } from './shared/popover
export
default
class
Milestone
{
export
default
class
Milestone
{
constructor
()
{
constructor
()
{
Milestone
.
initDeprecationMessage
();
this
.
bindTabsSwitching
();
this
.
bindTabsSwitching
();
// Load merge request tab if it is active
// Load merge request tab if it is active
...
...
app/assets/javascripts/pages/dashboard/milestones/show/index.js
View file @
19f14cfe
...
@@ -6,4 +6,6 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -6,4 +6,6 @@ document.addEventListener('DOMContentLoaded', () => {
new
Milestone
();
// eslint-disable-line no-new
new
Milestone
();
// eslint-disable-line no-new
new
Sidebar
();
// eslint-disable-line no-new
new
Sidebar
();
// eslint-disable-line no-new
new
MountMilestoneSidebar
();
// eslint-disable-line no-new
new
MountMilestoneSidebar
();
// eslint-disable-line no-new
Milestone
.
initDeprecationMessage
();
});
});
app/assets/javascripts/pages/groups/milestones/show/index.js
View file @
19f14cfe
import
initMilestonesShow
from
'
~/pages/milestones/shared/init_milestones_show
'
;
import
initMilestonesShow
from
'
~/pages/milestones/shared/init_milestones_show
'
;
import
Milestone
from
'
~/milestone
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initMilestonesShow
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initMilestonesShow
();
Milestone
.
initDeprecationMessage
();
});
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