From 978ed1064cdaa54b7f898dec075b657781108319 Mon Sep 17 00:00:00 2001 From: "Dave St.Germain" Date: Thu, 28 Aug 2014 15:11:47 -0400 Subject: [PATCH] Removed spacebar event handler, because it did more harm than good. --- .../lib/xmodule/xmodule/templates/html/zooming_image.yaml | 7 ------- .../xmodule/tests/templates/test/zooming_image.yaml | 6 ------ 2 files changed, 13 deletions(-) diff --git a/common/lib/xmodule/xmodule/templates/html/zooming_image.yaml b/common/lib/xmodule/xmodule/templates/html/zooming_image.yaml index ea0ad516f9..3ac9d63bcb 100644 --- a/common/lib/xmodule/xmodule/templates/html/zooming_image.yaml +++ b/common/lib/xmodule/xmodule/templates/html/zooming_image.yaml @@ -20,13 +20,6 @@ data: | height: 350, lightbox: false }); - $(document).keydown(function(event) { - if (event.keyCode == 32) { - event.preventDefault(); - $('.loupe img').click(); - } - }); }); // ]]>
- diff --git a/common/lib/xmodule/xmodule/tests/templates/test/zooming_image.yaml b/common/lib/xmodule/xmodule/tests/templates/test/zooming_image.yaml index bba08a0d7a..3ac9d63bcb 100644 --- a/common/lib/xmodule/xmodule/tests/templates/test/zooming_image.yaml +++ b/common/lib/xmodule/xmodule/tests/templates/test/zooming_image.yaml @@ -20,12 +20,6 @@ data: | height: 350, lightbox: false }); - $(document).keydown(function(event) { - if (event.keyCode == 32) { - event.preventDefault(); - $('.loupe img').click(); - } - }); }); // ]]>