Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
d59c0d08
Commit
d59c0d08
authored
Jul 10, 2019
by
gutkaBinit
Committed by
kevalbhatt
Jul 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3328 UI : Sort issue after changing the per page results.
Signed-off-by:
kevalbhatt
<
kbhatt@apache.org
>
parent
8188a96e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
TableLayout.js
dashboardv2/public/js/utils/TableLayout.js
+1
-7
No files found.
dashboardv2/public/js/utils/TableLayout.js
View file @
d59c0d08
...
...
@@ -189,13 +189,10 @@ define(['require',
if
(
this
.
includeAtlasTableSorting
)
{
var
oldSortingRef
=
this
.
collection
.
setSorting
;
this
.
collection
.
setSorting
=
function
()
{
this
.
state
.
pageSize
=
this
.
length
var
val
=
oldSortingRef
.
apply
(
this
,
arguments
);
// console.log(val)
val
.
fullCollection
.
models
.
sort
();
this
.
comparator
=
function
(
next
,
previous
,
data
)
{
// return a.get('year');
var
getValue
=
function
(
options
)
{
var
next
=
options
.
next
,
...
...
@@ -209,7 +206,6 @@ define(['require',
}
}
if
(
val
.
state
&&
(
!
_
.
isNull
(
val
.
state
.
sortKey
)))
{
var
nextValue
,
previousValue
;
if
((
next
&&
next
.
get
(
"attributes"
)
&&
next
.
get
(
"attributes"
)[
val
.
state
.
sortKey
])
||
(
previous
&&
previous
.
get
(
"attributes"
)
&&
previous
.
get
(
"attributes"
)[
val
.
state
.
sortKey
]))
{
...
...
@@ -228,13 +224,11 @@ define(['require',
});
}
}
return
val
;
};
}
this
.
bindEvents
();
},
/** all events binding here */
bindEvents
:
function
()
{
this
.
listenTo
(
this
.
collection
,
'request'
,
function
()
{
...
...
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