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
45097825
Commit
45097825
authored
Jul 26, 2013
by
Ujvari Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for highlight only annotations
parent
ce39a850
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
29 deletions
+3
-29
app_directives.coffee
h/js/app_directives.coffee
+2
-1
directives.coffee
h/js/directives.coffee
+0
-27
services.coffee
h/js/services.coffee
+1
-1
No files found.
h/js/app_directives.coffee
View file @
45097825
...
...
@@ -19,7 +19,8 @@ annotation = ['$filter', 'annotator', ($filter, annotator) ->
priority
:
100
# Must run before ngModel
require
:
'?ngModel'
restrict
:
'C'
scope
:
{}
scope
:
mode
:
'@'
templateUrl
:
'annotation.html'
]
...
...
h/js/directives.coffee
View file @
45097825
annotation
=
[
'$filter'
,
'annotator'
,
(
$filter
,
annotator
)
->
link
:
(
scope
,
elem
,
attrs
,
controller
)
->
return
unless
controller
?
# Bind shift+enter to save
elem
.
bind
keydown
:
(
e
)
->
if
e
.
keyCode
==
13
&&
e
.
shiftKey
e
.
preventDefault
()
scope
.
save
()
# Watch for changes
scope
.
$watch
'model.$modelValue.id'
,
(
id
)
->
scope
.
thread
=
annotator
.
threading
.
idTable
[
id
]
# Publish the controller
scope
.
model
=
controller
controller
:
'AnnotationController'
priority
:
100
# Must run before ngModel
require
:
'?ngModel'
restrict
:
'C'
scope
:
mode
:
'@'
templateUrl
:
'annotation.html'
]
authentication
=
->
base
=
username
:
null
...
...
h/js/services.coffee
View file @
45097825
...
...
@@ -163,7 +163,7 @@ class Hypothesis extends Annotator
matches
=
false
break
when
'text'
unless
annotation
.
text
.
toLowerCase
().
indexOf
(
value
.
toLowerCase
())
>
-
1
unless
annotation
.
text
?
and
annotation
.
text
.
toLowerCase
().
indexOf
(
value
.
toLowerCase
())
>
-
1
matches
=
false
break
when
'time'
...
...
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