From 67da62f83ced982d09ce3b4072e40f1a1d82f76a Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Thu, 24 Oct 2013 13:04:15 -0400 Subject: [PATCH] Update the JS to match the new semantics. Bug: LMS-1311 --- common/static/js/src/accessibility_tools.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/static/js/src/accessibility_tools.js b/common/static/js/src/accessibility_tools.js index 757db661cb..c3461490e2 100644 --- a/common/static/js/src/accessibility_tools.js +++ b/common/static/js/src/accessibility_tools.js @@ -114,18 +114,18 @@ 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('.nav-skip a').click(function() { - var href = jQuery(this).attr('href'); +$('.nav-skip').click(function() { + var href = $(this).attr('href'); if(href) { - jQuery(href).attr('tabIndex', -1).focus(); + $(href).attr('tabIndex', -1).focus(); } }); // and for the enter key -jQuery('.nav-skip a').keypress(function(e) { +$('.nav-skip').keypress(function(e) { if(e.which == 13) { - var href = jQuery(this).attr('href'); + var href = $(this).attr('href'); if(href) { - jQuery(href).attr('tabIndex', -1).focus(); + $(href).attr('tabIndex', -1).focus(); } } });