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
5cb065a7
Commit
5cb065a7
authored
Jul 21, 2014
by
Ujvari Gergely
Committed by
gergely-ujvari
Jul 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple query parameter for search
parent
09c3bc4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
controllers.coffee
h/static/scripts/controllers.coffee
+1
-1
directives.coffee
h/static/scripts/directives.coffee
+3
-2
streamsearch.coffee
h/static/scripts/streamsearch.coffee
+3
-2
No files found.
h/static/scripts/controllers.coffee
View file @
5cb065a7
...
...
@@ -250,7 +250,7 @@ class App
query
=
{
query
:
searchCollection
}
unless
angular
.
equals
$location
.
search
(),
query
if
$location
.
path
()
==
'/viewer'
if
$location
.
path
()
==
'/viewer'
or
$location
.
path
()
==
'/page_search'
$location
.
path
(
'/page_search'
).
search
(
query
)
else
$location
.
path
(
'/stream'
).
search
(
query
)
...
...
h/static/scripts/directives.coffee
View file @
5cb065a7
...
...
@@ -410,8 +410,9 @@ simpleSearch = ['$parse', ($parse) ->
scope
.
search
.
clear
()
scope
.
$watch
attr
.
query
,
(
query
)
->
scope
.
searchtext
=
query
scope
.
search
.
update
(
scope
.
searchtext
)
if
query
.
query
?
scope
.
searchtext
=
query
.
query
scope
.
search
.
update
(
scope
.
searchtext
)
restrict
:
'C'
template
:
'''
...
...
h/static/scripts/streamsearch.coffee
View file @
5cb065a7
...
...
@@ -31,8 +31,9 @@ class StreamSearch
.
setPastDataHits
(
50
)
# Apply query clauses
query
=
searchfilter
.
generateFacetedFilter
$location
.
search
().
query
queryparser
.
populateFilter
streamfilter
,
query
$scope
.
query
=
$location
.
search
()[
'query'
]
terms
=
searchfilter
.
generateFacetedFilter
$scope
.
query
queryparser
.
populateFilter
streamfilter
,
terms
$scope
.
updater
?
.
then
(
sock
)
->
filter
=
streamfilter
.
getFilter
()
...
...
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