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
893402d4
Commit
893402d4
authored
Oct 13, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preserve `archived` param only when sort order is changed
parent
4d791599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/groups/groups_filterable_list.js
app/assets/javascripts/groups/groups_filterable_list.js
+3
-3
No files found.
app/assets/javascripts/groups/groups_filterable_list.js
View file @
893402d4
...
@@ -64,11 +64,11 @@ export default class GroupFilterableList extends FilterableList {
...
@@ -64,11 +64,11 @@ export default class GroupFilterableList extends FilterableList {
// Get type of option selected from dropdown
// Get type of option selected from dropdown
const
currentTargetClassList
=
e
.
currentTarget
.
parentElement
.
classList
;
const
currentTargetClassList
=
e
.
currentTarget
.
parentElement
.
classList
;
const
isOptionFilterBySort
=
currentTargetClassList
.
contains
(
'
js-filter-sort-order
'
);
const
isOptionFilterBySort
=
currentTargetClassList
.
contains
(
'
js-filter-sort-order
'
);
const
isOptionFilterByArchivedProjects
=
currentTargetClassList
.
contains
(
'
js-filter-archived-projects
'
);
// Get option query param, also preserve currently applied query param
// Get option query param, also preserve currently applied query param
const
isOptionFilterByArchivedProjects
=
currentTargetClassList
.
contains
(
'
js-filter-archived-projects
'
);
const
sortParam
=
getParameterByName
(
'
sort
'
,
isOptionFilterBySort
?
e
.
currentTarget
.
href
:
window
.
location
.
href
);
const
sortParam
=
getParameterByName
(
'
sort
'
,
e
.
currentTarget
.
href
)
||
getParameterByName
(
'
sort
'
,
window
.
location
.
href
);
const
archivedParam
=
getParameterByName
(
'
archived
'
,
isOptionFilterByArchivedProjects
?
e
.
currentTarget
.
href
:
window
.
location
.
href
);
const
archivedParam
=
getParameterByName
(
'
archived
'
,
e
.
currentTarget
.
href
)
||
getParameterByName
(
'
archived
'
,
window
.
location
.
href
);
if
(
sortParam
)
{
if
(
sortParam
)
{
queryData
.
sort
=
sortParam
;
queryData
.
sort
=
sortParam
;
...
...
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