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
5d2ca494
Commit
5d2ca494
authored
Apr 01, 2014
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Annotator's Document plugin to 816c71f8 (typed-packaging branch). Fixes #1069
parent
c7512d0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
document.coffee
h/lib/_annotator_mapsrc/src/plugin/document.coffee
+3
-4
annotator.document.js
h/lib/annotator.document.js
+6
-7
annotator.document.map
h/lib/annotator.document.map
+1
-1
No files found.
h/lib/_annotator_mapsrc/src/plugin/document.coffee
View file @
5d2ca494
...
...
@@ -153,7 +153,6 @@ class Annotator.Plugin.Document extends Annotator.Plugin
# hack to get a absolute url from a possibly relative one
_absoluteUrl
:
(
url
)
->
img
=
$
(
"<img src='
#{
url
}
'></img>"
)
url
=
img
.
prop
(
'src'
)
img
.
prop
(
'src'
,
null
)
return
url
d
=
document
.
createElement
(
'a'
)
d
.
href
=
url
d
.
href
h/lib/annotator.document.js
View file @
5d2ca494
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
3cbddbb
** Annotator 1.2.6-dev-
816c71f
** 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
2-17 14:21:0
9Z
** Built at: 2014-0
4-01 01:07:4
9Z
*/
...
...
@@ -284,11 +284,10 @@
};
Document
.
prototype
.
_absoluteUrl
=
function
(
url
)
{
var
img
;
img
=
$
(
"<img src='"
+
url
+
"'></img>"
);
url
=
img
.
prop
(
'src'
);
img
.
prop
(
'src'
,
null
);
return
url
;
var
d
;
d
=
document
.
createElement
(
'a'
);
d
.
href
=
url
;
return
d
.
href
;
};
return
Document
;
...
...
h/lib/annotator.document.map
View file @
5d2ca494
{"version":3,"file":"annotator.document.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/document.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACAA;CAAA,GAAA,EAAA;KAAA;;oSAAA;;CAAA,CAAM,IAAgB,GAAP;CAEb,OAAA;;CAAA;;;;;;;;;;;;;;;;;;;;CAAA;;CAAA,EAAI,CAAJ,KAAa;;CAAb,EAGE,GADF;CACE,CAA2B,IAA3B,mBAAA;CAHF,KAAA;;CAAA,EAKY,MAAA,CAAZ;CACO,GAAD,SAAJ,MAAA;CANF,IAKY;;CALZ,EAUA,MAAK;CACH,SAAA,gBAAA;CAAA,EAAA,CAAM,EAAN,EAAiC,UAA3B;CACN;CAAA,UAAA,iCAAA;0BAAA;CACE,EAAG,CAAA,CAAY,GAAf,GAAA;CACE,EAAA,CAAU,MAAV;UAFJ;CAAA,MADA;CAIA,EAAA,UAAO;CAfT,IAUK;;CAVL,EAmBM,CAAN,KAAM;CACJ,SAAA,6BAAA;CAAA,CAAA,CAAa,GAAb,IAAA;CACA;CAAA,UAAA,iCAAA;0BAAA;CACE,GAAgC,IAAhC;CAAA,EAAwB,CAAT,MAAf;UADF;CAAA,MADA;CAGA;;AAAQ,CAAA;GAAA,WAAA,IAAA;CAAA;CAAA;;CAAR;CAvBF,IAmBM;;CAnBN,EAyByB,MAAC,CAAD,aAAzB;CACa,EAAW,CAAC,IAAvB,EAAU,GAAV;CA1BF,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GAAA,IAAM,EAAG;CAAT,EACA,CAAM,CAAA,CAAN;CADA,CAEgB,CAAb,CAAH,CAAA,CAAA;CACA,EAAA,UAAO;CA5JT,IAwJc;;CAxJd;;CAFsC,QAAS;CAAjD"}
\ No newline at end of file
{"version":3,"file":"annotator.document.js","sources":["_preamble.coffee","_annotator_mapsrc/src/plugin/document.coffee"],"names":[],"mappings":";AAAA;;;;;;;;;;CAAA;CAAA;;;;;;;ACAA;CAAA,GAAA,EAAA;KAAA;;oSAAA;;CAAA,CAAM,IAAgB,GAAP;CAEb,OAAA;;CAAA;;;;;;;;;;;;;;;;;;;;CAAA;;CAAA,EAAI,CAAJ,KAAa;;CAAb,EAGE,GADF;CACE,CAA2B,IAA3B,mBAAA;CAHF,KAAA;;CAAA,EAKY,MAAA,CAAZ;CACO,GAAD,SAAJ,MAAA;CANF,IAKY;;CALZ,EAUA,MAAK;CACH,SAAA,gBAAA;CAAA,EAAA,CAAM,EAAN,EAAiC,UAA3B;CACN;CAAA,UAAA,iCAAA;0BAAA;CACE,EAAG,CAAA,CAAY,GAAf,GAAA;CACE,EAAA,CAAU,MAAV;UAFJ;CAAA,MADA;CAIA,EAAA,UAAO;CAfT,IAUK;;CAVL,EAmBM,CAAN,KAAM;CACJ,SAAA,6BAAA;CAAA,CAAA,CAAa,GAAb,IAAA;CACA;CAAA,UAAA,iCAAA;0BAAA;CACE,GAAgC,IAAhC;CAAA,EAAwB,CAAT,MAAf;UADF;CAAA,MADA;CAGA;;AAAQ,CAAA;GAAA,WAAA,IAAA;CAAA;CAAA;;CAAR;CAvBF,IAmBM;;CAnBN,EAyByB,MAAC,CAAD,aAAzB;CACa,EAAW,CAAC,IAAvB,EAAU,GAAV;CA1BF,IAyByB;;CAzBzB,EA4BqB,MAAA,UAArB;CACE,CAAA,CAAY,CAAX,EAAD,EAAA;CAAA,GAII,EAAJ,MAAA;CAJA,GAKI,EAAJ,QAAA;CALA,GAMI,EAAJ,MAAA;CANA,GAOI,EAAJ,KAAA;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A,GAAG,CAAQ,GAAX;AACE,CAAA,cAAA,gCAAA;8BAAA;CACE,EAAO,CAAJ,CAAa,CAAhB,MAAA;CACE,EAAA,GAAM,QAAN;cADF;CAAA,GAEC,IAAQ,IAAT;CAAoB,CAAM,CAAN,CAAA,UAAA;CAFpB,aAEA;CAHF,UADF;UAZF;CAAA,MAZA;CA+BA;CAAA;YAAA,CAAA;8BAAA;CACE,GAAG,CAAQ,GAAX,IAAA;;;AACE,CAAA;kBAAA,6BAAA;+BAAA;CACE,CAAM,EAAH,CAAY,CAAf,MAAG,EAAH;CACE,GAAC,IAAQ;CAAW,CAAM,EAAN,cAAA;CADtB,iBACE;MADF,UAAA;CAAA;gBADF;CAAA;;CADF;MAAA,IAAA;CAAA;UADF;CAAA;uBAjCS;CAjGX,IAiGW;;CAjGX,EAwIa,MAAA,EAAb;CACE,SAAA,4BAAA;CAAA;CAAA;YAAA,gCAAA;0BAAA;CACE,EAAG,CAAA,CAAA,CAAH,EAAA,OAAG;CACD,EAAuB,CAAtB,IAAS,CAAA,GAAa;MADzB,IAAA;CAAA;UADF;CAAA;uBADW;CAxIb,IAwIa;;CAxIb,EA6Ie,MAAA,IAAf;CACE,SAAA,kBAAA;CAAA,CAAA,CAAqB,CAApB,EAAD,EAAS;CAET;CAAA;YAAA,gCAAA;uBAAA;CACE,EAAG,CAAA,CAAS,GAAZ,EAAA;CACE,CAAgC,EAA7B,CAAA,IAAH,CAAA,CAAG;CACD,GAAC,IAAQ,CAAT;MADF,MAAA;CAGE,GAAC,IAAQ;YAJb;MAAA,IAAA;CAAA;UADF;CAAA;uBAHa;CA7If,IA6Ie;;CA7If,EAwJc,MAAC,GAAf;CACE,SAAA;CAAA,EAAI,GAAJ,EAAY,KAAR;CAAJ,EACS,CAAT,EAAA;CACC,YAAD;CA3JF,IAwJc;;CAxJd;;CAFsC,QAAS;CAAjD"}
\ No newline at end of file
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