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
d701ea65
Commit
d701ea65
authored
May 30, 2013
by
Ujvari Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #417
parent
93bc8be3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
controllers.coffee
h/js/controllers.coffee
+4
-2
directives.coffee
h/js/directives.coffee
+11
-0
No files found.
h/js/controllers.coffee
View file @
d701ea65
...
...
@@ -329,10 +329,12 @@ class Annotation
window
.
location
.
host
+
'/a/'
+
$scope
.
model
.
$modelValue
.
id
$scope
.
shared
=
false
$scope
.
share
=
->
$scope
.
shared
=
not
$scope
.
shared
$scope
.
toggle
=
->
$element
.
find
(
'.share-dialog'
).
slideToggle
()
$scope
.
share
=
->
$scope
.
shared
=
not
$scope
.
shared
$scope
.
toggle
()
class
Editor
this
.
$inject
=
[
'$location'
,
'$routeParams'
,
'$scope'
,
'annotator'
]
...
...
h/js/directives.coffee
View file @
d701ea65
...
...
@@ -214,6 +214,15 @@ thread = ->
restrict
:
'C'
scope
:
true
#Directive will be removed once the angularjs official version will have this directive
ngBlur
=
[
'$parse'
,
(
$parse
)
->
(
scope
,
element
,
attr
)
->
fn
=
$parse
attr
[
'ngBlur'
]
element
.
bind
'blur'
,
(
event
)
->
scope
.
$apply
->
fn
scope
,
$event
:
event
]
angular
.
module
(
'h.directives'
,
[
'ngSanitize'
])
.
directive
(
'annotation'
,
annotation
)
...
...
@@ -224,3 +233,5 @@ angular.module('h.directives', ['ngSanitize'])
.
directive
(
'slowValidate'
,
slowValidate
)
.
directive
(
'tabReveal'
,
tabReveal
)
.
directive
(
'thread'
,
thread
)
.
directive
(
'ngBlur'
,
ngBlur
)
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