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
bdd41a19
Commit
bdd41a19
authored
May 08, 2014
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Annotator to 6b6cb4ba (from typed-packaging branch)
parent
187281e7
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
notification.coffee
h/lib/_annotator_mapsrc/src/notification.coffee
+6
-2
annotator.js
h/lib/annotator.js
+8
-4
annotator.map
h/lib/annotator.map
+1
-1
No files found.
h/lib/_annotator_mapsrc/src/notification.coffee
View file @
bdd41a19
...
...
@@ -53,9 +53,10 @@ class Annotator.Notification extends Delegator
#
# Returns itself.
show
:
(
message
,
status
=
Annotator
.
Notification
.
INFO
)
=>
@
currentStatus
=
status
$
(
@
element
)
.
addClass
(
@
options
.
classes
.
show
)
.
addClass
(
@
options
.
classes
[
s
tatus
])
.
addClass
(
@
options
.
classes
[
@
currentS
tatus
])
.
html
(
Util
.
escape
(
message
||
""
))
setTimeout
this
.
hide
,
5000
...
...
@@ -70,7 +71,10 @@ class Annotator.Notification extends Delegator
#
# Returns itself.
hide
:
=>
$
(
@
element
).
removeClass
(
@
options
.
classes
.
show
)
@
currentStatus
?=
Annotator
.
Notification
.
INFO
$
(
@
element
)
.
removeClass
(
@
options
.
classes
.
show
)
.
removeClass
(
@
options
.
classes
[
@
currentStatus
])
this
# Constants for controlling the display of the notification. Each constant
...
...
h/lib/annotator.js
View file @
bdd41a19
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
af15c86
** Annotator 1.2.6-dev-
6b6cb4b
** https://github.com/okfn/annotator/
**
** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning.
** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE
**
** Built at: 2014-0
4-14 22:36:4
0Z
** Built at: 2014-0
5-08 11:26:2
0Z
*/
...
...
@@ -2330,13 +2330,17 @@
if
(
status
==
null
)
{
status
=
Annotator
.
Notification
.
INFO
;
}
$
(
this
.
element
).
addClass
(
this
.
options
.
classes
.
show
).
addClass
(
this
.
options
.
classes
[
status
]).
html
(
Util
.
escape
(
message
||
""
));
this
.
currentStatus
=
status
;
$
(
this
.
element
).
addClass
(
this
.
options
.
classes
.
show
).
addClass
(
this
.
options
.
classes
[
this
.
currentStatus
]).
html
(
Util
.
escape
(
message
||
""
));
setTimeout
(
this
.
hide
,
5000
);
return
this
;
};
Notification
.
prototype
.
hide
=
function
()
{
$
(
this
.
element
).
removeClass
(
this
.
options
.
classes
.
show
);
if
(
this
.
currentStatus
==
null
)
{
this
.
currentStatus
=
Annotator
.
Notification
.
INFO
;
}
$
(
this
.
element
).
removeClass
(
this
.
options
.
classes
.
show
).
removeClass
(
this
.
options
.
classes
[
this
.
currentStatus
]);
return
this
;
};
...
...
h/lib/annotator.map
View file @
bdd41a19
This diff is collapsed.
Click to expand it.
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