Minor fixes to match new HTML and CSS updates.

LMS-1311
This commit is contained in:
Diana Huang
2013-10-24 09:14:26 -04:00
parent 5b63b176da
commit 43bdb5da54
2 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
## -*- coding: utf-8 -*- ## -*- coding: utf-8 -*-
<%! from django.utils.translation import ugettext as _ %>
<%namespace name='static' file='static_content.html'/> <%namespace name='static' file='static_content.html'/>
<!doctype html> <!doctype html>

View File

@@ -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 // see http://stackoverflow.com/questions/6280399/skip-links-not-working-in-chrome/12720183#12720183
// handle things properly for clicks // handle things properly for clicks
jQuery('#skip-link a').click(function() { jQuery('.nav-skip a').click(function() {
var href = jQuery(this).attr('href'); var href = jQuery(this).attr('href');
if(href) { if(href) {
jQuery(href).attr('tabIndex', -1).focus(); jQuery(href).attr('tabIndex', -1).focus();
} }
}); });
// and for the enter key // and for the enter key
jQuery('#skip-link a').keypress(function(e) { jQuery('.nav-skip a').keypress(function(e) {
if(e.which == 13) { if(e.which == 13) {
var href = jQuery(this).attr('href'); var href = jQuery(this).attr('href');
if(href) { if(href) {