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
Jérome Perrin
gitlab-ce
Commits
a6571089
Commit
a6571089
authored
Feb 05, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update class initialization syntax
parent
0ea146e6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
+14
-6
app/assets/javascripts/pages/groups/issues/index.js
app/assets/javascripts/pages/groups/issues/index.js
+3
-1
app/assets/javascripts/pages/groups/merge_requests/index.js
app/assets/javascripts/pages/groups/merge_requests/index.js
+3
-1
app/assets/javascripts/pages/projects/issues/index/index.js
app/assets/javascripts/pages/projects/issues/index/index.js
+3
-1
app/assets/javascripts/pages/projects/merge_requests/index/index.js
.../javascripts/pages/projects/merge_requests/index/index.js
+3
-1
app/assets/javascripts/pages/search/init_filtered_search.js
app/assets/javascripts/pages/search/init_filtered_search.js
+2
-2
No files found.
app/assets/javascripts/pages/groups/issues/index.js
View file @
a6571089
...
...
@@ -3,6 +3,8 @@ import initFilteredSearch from '~/pages/search/init_filtered_search';
import
{
FILTERED_SEARCH
}
from
'
~/pages/constants
'
;
export
default
()
=>
{
initFilteredSearch
(
FILTERED_SEARCH
.
ISSUES
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
ISSUES
,
});
projectSelect
();
};
app/assets/javascripts/pages/groups/merge_requests/index.js
View file @
a6571089
...
...
@@ -3,6 +3,8 @@ import initFilteredSearch from '~/pages/search/init_filtered_search';
import
{
FILTERED_SEARCH
}
from
'
~/pages/constants
'
;
export
default
()
=>
{
initFilteredSearch
(
FILTERED_SEARCH
.
MERGE_REQUESTS
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
MERGE_REQUESTS
,
});
projectSelect
();
};
app/assets/javascripts/pages/projects/issues/index/index.js
View file @
a6571089
...
...
@@ -8,7 +8,9 @@ import { FILTERED_SEARCH } from '~/pages/constants';
import
{
ISSUABLE_INDEX
}
from
'
~/pages/projects/constants
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initFilteredSearch
(
FILTERED_SEARCH
.
ISSUES
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
ISSUES
,
});
new
IssuableIndex
(
ISSUABLE_INDEX
.
ISSUE
);
new
ShortcutsNavigation
();
...
...
app/assets/javascripts/pages/projects/merge_requests/index/index.js
View file @
a6571089
...
...
@@ -6,7 +6,9 @@ import { FILTERED_SEARCH } from '~/pages/constants';
import
{
ISSUABLE_INDEX
}
from
'
~/pages/projects/constants
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initFilteredSearch
(
FILTERED_SEARCH
.
MERGE_REQUESTS
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
MERGE_REQUESTS
,
});
new
IssuableIndex
(
ISSUABLE_INDEX
.
MERGE_REQUEST
);
// eslint-disable-line no-new
new
ShortcutsNavigation
();
// eslint-disable-line no-new
new
UsersSelect
();
// eslint-disable-line no-new
...
...
app/assets/javascripts/pages/search/init_filtered_search.js
View file @
a6571089
export
default
(
page
)
=>
{
export
default
(
{
page
}
)
=>
{
const
filteredSearchEnabled
=
gl
.
FilteredSearchManager
&&
document
.
querySelector
(
'
.filtered-search
'
);
if
(
filteredSearchEnabled
)
{
const
filteredSearchManager
=
new
gl
.
FilteredSearchManager
(
page
);
const
filteredSearchManager
=
new
gl
.
FilteredSearchManager
(
{
page
}
);
filteredSearchManager
.
setup
();
}
};
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