From 43bdb5da54600a1fa02bc86baccced51e30818ce Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Thu, 24 Oct 2013 09:14:26 -0400 Subject: [PATCH] Minor fixes to match new HTML and CSS updates. LMS-1311 --- cms/templates/base.html | 1 + common/static/js/src/accessibility_tools.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/templates/base.html b/cms/templates/base.html index ce6522a000..1d02441694 100644 --- a/cms/templates/base.html +++ b/cms/templates/base.html @@ -1,4 +1,5 @@ ## -*- coding: utf-8 -*- +<%! from django.utils.translation import ugettext as _ %> <%namespace name='static' file='static_content.html'/> diff --git a/common/static/js/src/accessibility_tools.js b/common/static/js/src/accessibility_tools.js index 9e315699d0..757db661cb 100644 --- a/common/static/js/src/accessibility_tools.js +++ b/common/static/js/src/accessibility_tools.js @@ -114,14 +114,14 @@ var accessible_modal = function(trigger, closeButtonId, modalId, mainPageId) { // see http://stackoverflow.com/questions/6280399/skip-links-not-working-in-chrome/12720183#12720183 // handle things properly for clicks -jQuery('#skip-link a').click(function() { +jQuery('.nav-skip a').click(function() { var href = jQuery(this).attr('href'); if(href) { jQuery(href).attr('tabIndex', -1).focus(); } }); // and for the enter key -jQuery('#skip-link a').keypress(function(e) { +jQuery('.nav-skip a').keypress(function(e) { if(e.which == 13) { var href = jQuery(this).attr('href'); if(href) {