From 920d1c9a40d1c237a091c848ea3923c4a7e46807 Mon Sep 17 00:00:00 2001 From: Adam Palay Date: Fri, 20 Sep 2013 13:36:01 -0400 Subject: [PATCH] make it so that mathplayer message only appears when mathjax is on the page --- lms/static/coffee/src/mathjax_accessible.coffee | 4 ++++ lms/templates/mathjax_accessible.html | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lms/static/coffee/src/mathjax_accessible.coffee b/lms/static/coffee/src/mathjax_accessible.coffee index f0114a2f66..a97c7fa5b2 100644 --- a/lms/static/coffee/src/mathjax_accessible.coffee +++ b/lms/static/coffee/src/mathjax_accessible.coffee @@ -12,5 +12,9 @@ $ -> # if not, set 'aria-hidden' to 'true' if MathJax? and not isMPInstalled() $("#mathjax-accessibility-message").attr("aria-hidden", "false") + + if MathJax? and $("#mathplayer-browser-message").length > 0 + $("#mathplayer-browser-message").attr("aria-hidden", "false") + else $("#mathjax-accessibility-message").attr("aria-hidden", "true") diff --git a/lms/templates/mathjax_accessible.html b/lms/templates/mathjax_accessible.html index b3c6283e62..e5fb8ca571 100644 --- a/lms/templates/mathjax_accessible.html +++ b/lms/templates/mathjax_accessible.html @@ -1,6 +1,6 @@ <%! from django.utils.translation import ugettext as _ %> -
+ - -
+ + - +