Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
5812f5c5
Commit
5812f5c5
authored
Oct 30, 2014
by
Jake Hartnell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1623 from hypothesis/stream-orphan-sort
Sort orphan placeholders to bottom of stream
parents
e77c90a5
42713ac0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
controllers.coffee
h/static/scripts/controllers.coffee
+5
-5
No files found.
h/static/scripts/controllers.coffee
View file @
5812f5c5
...
...
@@ -224,11 +224,11 @@ class AppController
$scope
.
$watch
'sort.name'
,
(
name
)
->
return
unless
name
[
predicate
,
reverse
]
=
switch
name
when
'Newest'
then
[
'
message.updated'
,
true
]
when
'Oldest'
then
[
'
message.updated'
,
false
]
when
'Location'
then
[
'
message.target[0].pos.top'
,
false
]
$scope
.
sort
=
{
name
,
predicate
,
reverse
}
predicate
=
switch
name
when
'Newest'
then
[
'
-!!message'
,
'-message.updated'
]
when
'Oldest'
then
[
'
-!!message'
,
'message.updated'
]
when
'Location'
then
[
'
-!!message'
,
'message.target[0].pos.top'
]
$scope
.
sort
=
{
name
,
predicate
}
$scope
.
$watch
'store.entities'
,
(
entities
,
oldEntities
)
->
return
if
entities
is
oldEntities
...
...
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