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
077692ea
Commit
077692ea
authored
Sep 10, 2013
by
Ujvari Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Streamviewer template uses markdown directive
parent
74e96561
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
streamsearch.coffee
h/js/streamsearch.coffee
+3
-3
No files found.
h/js/streamsearch.coffee
View file @
077692ea
...
...
@@ -41,7 +41,7 @@ class StreamSearch
return
# Past data limit
limit
=
10
0
limit
=
5
0
# First cluster the different facets into categories
categories
=
{}
...
...
@@ -86,13 +86,13 @@ class StreamSearch
return
callback
[
'text'
,
'tag'
,
'quote'
,
'time'
,
'user'
,
'limit'
],
{
preserveOrder
:
true
}
valueMatches
:
(
facet
,
searchTerm
,
callback
)
->
switch
facet
when
'limit'
then
callback
[
0
,
10
,
25
,
100
,
250
,
1000
]
when
'limit'
then
callback
[
0
,
10
,
25
,
50
,
100
,
250
,
1000
]
when
'time'
callback
[
'5 min'
,
'30 min'
,
'1 hour'
,
'12 hours'
,
'1 day'
,
'1 week'
,
'1 month'
,
'1 year'
],
{
preserveOrder
:
true
}
clearSearch
:
(
original
)
=>
# Execute clearSearch's internal method for resetting search
original
()
$scope
.
$apply
-
>
$scope
.
$apply
->
$scope
.
annotations
=
[]
$location
.
search
{}
...
...
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