mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
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:
parent
2a80f4109a
commit
90eda9d9fe
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user