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
63563225
Commit
63563225
authored
Jul 24, 2013
by
Ujvari Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prepare search for route_params
parent
cbbd1daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
services.coffee
h/js/services.coffee
+7
-1
No files found.
h/js/services.coffee
View file @
63563225
...
@@ -122,9 +122,14 @@ class Hypothesis extends Annotator
...
@@ -122,9 +122,14 @@ class Hypothesis extends Annotator
this
.
subscribe
'annotationsLoaded'
,
->
$route
.
reload
()
this
.
subscribe
'annotationsLoaded'
,
->
$route
.
reload
()
@
user_filter
=
$filter
(
'userName'
)
@
user_filter
=
$filter
(
'userName'
)
search_query
=
''
params
=
$location
.
search
()
if
params
.
search_query
search_query
=
params
.
search_query
@
visualSearch
=
VS
.
init
@
visualSearch
=
VS
.
init
container
:
$
(
'.visual-search'
)
container
:
$
(
'.visual-search'
)
query
:
''
query
:
search_query
callbacks
:
callbacks
:
search
:
(
query
,
searchCollection
)
=>
search
:
(
query
,
searchCollection
)
=>
unless
query
unless
query
...
@@ -200,6 +205,7 @@ class Hypothesis extends Annotator
...
@@ -200,6 +205,7 @@ class Hypothesis extends Annotator
whole_document
:
whole_document
whole_document
:
whole_document
matched
:
matched
matched
:
matched
in_body_text
:
in_body_text
in_body_text
:
in_body_text
search_query
:
query
$location
.
path
(
'/page_search'
).
search
(
search
)
$location
.
path
(
'/page_search'
).
search
(
search
)
$rootScope
.
$digest
()
$rootScope
.
$digest
()
...
...
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