diff --git a/static/js/lightbox.js b/static/js/lightbox.js index 6396287335..05f0321e05 100644 --- a/static/js/lightbox.js +++ b/static/js/lightbox.js @@ -294,7 +294,7 @@ exports.initialize = function () { // enable the `LightboxCanvas` class. exports.open($img); } else { - $img = $("#lightbox_overlay").find(".image-preview canvas")[0].image; + $img = $($("#lightbox_overlay").find(".image-preview canvas")[0].image); $(this).removeClass("enabled"); exports.open($img);