Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
fedeebd7
Commit
fedeebd7
authored
8 years ago
by
Anika Henke
Browse files
Options
Downloads
Patches
Plain Diff
rewrote js for footnotes to work in xhtml
parent
250ce76b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/parser/xhtml.php
+1
-1
1 addition, 1 deletion
inc/parser/xhtml.php
lib/scripts/page.js
+11
-8
11 additions, 8 deletions
lib/scripts/page.js
with
12 additions
and
9 deletions
inc/parser/xhtml.php
+
1
−
1
View file @
fedeebd7
...
...
@@ -147,7 +147,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
}
// add footnote markup and close this footnote
$this
->
doc
.
=
$footnote
;
$this
->
doc
.
=
'<span class="content">'
.
$footnote
.
'</span>'
;
$this
->
doc
.
=
'</div>'
.
DOKU_LF
;
}
}
...
...
This diff is collapsed.
Click to expand it.
lib/scripts/page.js
+
11
−
8
View file @
fedeebd7
...
...
@@ -83,23 +83,26 @@ dw_page = {
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Chris Smith <chris@jalakai.co.uk>
* @author Anika Henke <anika@selfthinker.org>
*/
footnoteDisplay
:
function
()
{
var
content
=
jQuery
(
jQuery
(
this
).
attr
(
'
href
'
))
// Footnote text anchor
.
closest
(
'
div.fn
'
).
html
();
var
$
content
=
jQuery
(
jQuery
(
this
).
attr
(
'
href
'
))
// Footnote text anchor
.
parent
().
siblings
(
'
.content
'
).
clone
();
if
(
content
===
null
){
if
(
!
$
content
)
{
return
;
}
// strip the leading content anchors and their comma separators
content
=
content
.
replace
(
/
((
^|
\s
*,
\s
*
)
<sup>.*
?
<
\/
sup>
)
+
\s
*/gi
,
''
);
// prefix ids on any elements with "insitu__" to ensure they remain unique
content
=
content
.
replace
(
/
\b
id=
([
'"
])([^
"'
]
+
)\1
/gi
,
'
id="insitu__$2
'
);
jQuery
(
'
[id]
'
,
$content
).
each
(
function
(){
var
id
=
jQuery
(
this
).
attr
(
'
id
'
);
jQuery
(
this
).
attr
(
'
id
'
,
'
insitu__
'
+
id
);
});
var
content
=
$content
.
html
().
trim
();
// now put the content into the wrapper
dw_page
.
insituPopup
(
this
,
'
insitu__fn
'
).
html
(
content
).
show
().
attr
(
'
aria-hidden
'
,
'
false
'
);
dw_page
.
insituPopup
(
this
,
'
insitu__fn
'
).
html
(
content
)
.
show
().
attr
(
'
aria-hidden
'
,
'
false
'
);
},
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment