summaryrefslogtreecommitdiff
path: root/lib/scripts
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2013-08-01 17:11:29 +0100
committerAnika Henke <anika@selfthinker.org>2013-08-01 17:11:29 +0100
commit763ffe58812aba9b1e6fe2bca4bb74187ab16ea3 (patch)
tree80de5e005f7b25058ac10d58defc6d1983f7f0f3 /lib/scripts
parent193e22801d763e715f03f241b135a2e249c6132e (diff)
downloadrpg-763ffe58812aba9b1e6fe2bca4bb74187ab16ea3.tar.gz
rpg-763ffe58812aba9b1e6fe2bca4bb74187ab16ea3.tar.bz2
added aria attributes for footnote tooltips
Diffstat (limited to 'lib/scripts')
-rw-r--r--lib/scripts/page.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/scripts/page.js b/lib/scripts/page.js
index 4ab0bf9b5..7b4958d82 100644
--- a/lib/scripts/page.js
+++ b/lib/scripts/page.js
@@ -62,7 +62,9 @@ dw_page = {
$fndiv = jQuery(document.createElement('div'))
.attr('id', popup_id)
.addClass('insitu-footnote JSpopup')
- .mouseleave(function () {jQuery(this).hide();});
+ .attr('aria-hidden', 'true')
+ .mouseleave(function () {jQuery(this).hide().attr('aria-hidden', 'true');})
+ .attr('role', 'tooltip');
jQuery('.dokuwiki:first').append($fndiv);
}
@@ -97,7 +99,7 @@ dw_page = {
content = content.replace(/\bid=(['"])([^"']+)\1/gi,'id="insitu__$2');
// now put the content into the wrapper
- dw_page.insituPopup(this, 'insitu__fn').html(content).show();
+ dw_page.insituPopup(this, 'insitu__fn').html(content).show().attr('aria-hidden', 'false');
},
/**