From 90eda9d9fed65cee2df4d94e488ffa4ff31bb2df Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 3 Apr 2020 11:11:09 -0700 Subject: [PATCH] lightbox: Convert canvas image element to jQuery object. The $img variable in this code path was incorrectly tagged as a jQuery object. --- static/js/lightbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);