lightbox: Convert canvas image element to jQuery object.

The $img variable in this code path was incorrectly tagged as a jQuery
object.
This commit is contained in:
Tim Abbott 2020-04-03 11:11:09 -07:00
parent 2a80f4109a
commit 90eda9d9fe

View File

@ -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);