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
2265b3d3
Commit
2265b3d3
authored
Aug 06, 2013
by
Ujvari Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort time options and added 30 minutes and 12 hours.
parent
bf7c7d63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
services.coffee
h/js/services.coffee
+8
-2
No files found.
h/js/services.coffee
View file @
2265b3d3
...
...
@@ -191,12 +191,18 @@ class Hypothesis extends Annotator
when
'time'
delta
=
Math
.
round
((
+
new
Date
-
new
Date
(
annotation
.
updated
))
/
1000
)
switch
value
when
'5 min
utes
'
when
'5 min'
unless
delta
<=
60
*
5
matches
=
false
when
'30 min'
unless
delta
<=
60
*
30
matches
=
false
when
'1 hour'
unless
delta
<=
60
*
60
matches
=
false
when
'12 hours'
unless
delta
<=
60
*
60
*
12
matches
=
false
when
'1 day'
unless
delta
<=
60
*
60
*
24
matches
=
false
...
...
@@ -247,7 +253,7 @@ class Hypothesis extends Annotator
when
'group'
then
callback
[
'Public'
,
'Private'
]
when
'area'
then
callback
[
'sidebar'
,
'document'
]
when
'time'
callback
[
'5 min
utes'
,
'1 hour'
,
'1 day'
,
'1 week'
,
'1 month'
,
'1 year'
]
callback
[
'5 min
'
,
'30 min'
,
'1 hour'
,
'12 hours'
,
'1 day'
,
'1 week'
,
'1 month'
,
'1 year'
],
{
preserveOrder
:
true
}
clearSearch
:
(
original
)
=>
@
show_search
=
false
original
()
...
...
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