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
6 years ago
by
gutkaBinit
Committed by
kevalbhatt
6 years ago
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
Hide 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',
...
@@ -189,13 +189,10 @@ define(['require',
if
(
this
.
includeAtlasTableSorting
)
{
if
(
this
.
includeAtlasTableSorting
)
{
var
oldSortingRef
=
this
.
collection
.
setSorting
;
var
oldSortingRef
=
this
.
collection
.
setSorting
;
this
.
collection
.
setSorting
=
function
()
{
this
.
collection
.
setSorting
=
function
()
{
this
.
state
.
pageSize
=
this
.
length
var
val
=
oldSortingRef
.
apply
(
this
,
arguments
);
var
val
=
oldSortingRef
.
apply
(
this
,
arguments
);
// console.log(val)
val
.
fullCollection
.
models
.
sort
();
val
.
fullCollection
.
models
.
sort
();
this
.
comparator
=
function
(
next
,
previous
,
data
)
{
this
.
comparator
=
function
(
next
,
previous
,
data
)
{
// return a.get('year');
var
getValue
=
function
(
options
)
{
var
getValue
=
function
(
options
)
{
var
next
=
options
.
next
,
var
next
=
options
.
next
,
...
@@ -209,7 +206,6 @@ define(['require',
...
@@ -209,7 +206,6 @@ define(['require',
}
}
}
}
if
(
val
.
state
&&
(
!
_
.
isNull
(
val
.
state
.
sortKey
)))
{
if
(
val
.
state
&&
(
!
_
.
isNull
(
val
.
state
.
sortKey
)))
{
var
nextValue
,
var
nextValue
,
previousValue
;
previousValue
;
if
((
next
&&
next
.
get
(
"attributes"
)
&&
next
.
get
(
"attributes"
)[
val
.
state
.
sortKey
])
||
(
previous
&&
previous
.
get
(
"attributes"
)
&&
previous
.
get
(
"attributes"
)[
val
.
state
.
sortKey
]))
{
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',
...
@@ -228,13 +224,11 @@ define(['require',
});
});
}
}
}
}
return
val
;
return
val
;
};
};
}
}
this
.
bindEvents
();
this
.
bindEvents
();
},
},
/** all events binding here */
/** all events binding here */
bindEvents
:
function
()
{
bindEvents
:
function
()
{
this
.
listenTo
(
this
.
collection
,
'request'
,
function
()
{
this
.
listenTo
(
this
.
collection
,
'request'
,
function
()
{
...
...
This diff is collapsed.
Click to expand it.
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