diff --git a/common/lib/xmodule/xmodule/templates/html/zooming_image.yaml b/common/lib/xmodule/xmodule/templates/html/zooming_image.yaml index dc79c75fff67..ea0ad516f9d5 100644 --- a/common/lib/xmodule/xmodule/templates/html/zooming_image.yaml +++ b/common/lib/xmodule/xmodule/templates/html/zooming_image.yaml @@ -6,7 +6,7 @@ data: |

Some edX classes use extremely large, extremely detailed graphics. To make it easier to understand we can offer two versions of those graphics, with the zoomed section showing when you click on the main view.

The example below is from 7.00x: Introduction to Biology and shows a subset of the biochemical reactions that cells carry out.

You can view the chemical structures of the molecules by clicking on them. The magnified view also lists the enzymes involved in each step.

- +

Press spacebar to open the magifier.

magnify @@ -20,6 +20,12 @@ 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 dc79c75fff67..bba08a0d7a59 100644 --- a/common/lib/xmodule/xmodule/tests/templates/test/zooming_image.yaml +++ b/common/lib/xmodule/xmodule/tests/templates/test/zooming_image.yaml @@ -6,7 +6,7 @@ data: |

Some edX classes use extremely large, extremely detailed graphics. To make it easier to understand we can offer two versions of those graphics, with the zoomed section showing when you click on the main view.

The example below is from 7.00x: Introduction to Biology and shows a subset of the biochemical reactions that cells carry out.

You can view the chemical structures of the molecules by clicking on them. The magnified view also lists the enzymes involved in each step.

- +

Press spacebar to open the magifier.

magnify @@ -20,7 +20,12 @@ data: | height: 350, lightbox: false }); + $(document).keydown(function(event) { + if (event.keyCode == 32) { + event.preventDefault(); + $('.loupe img').click(); + } + }); }); // ]]>
-