mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
js: Use .empty() instead of .html("").
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
de663184f3
commit
e0b593f67e
@@ -177,7 +177,7 @@ export function clear_for_testing() {
|
||||
export function render_lightbox_list_images(preview_source) {
|
||||
if (!is_open) {
|
||||
const images = Array.prototype.slice.call($(".focused_table .message_inline_image img"));
|
||||
const $image_list = $("#lightbox_overlay .image-list").html("");
|
||||
const $image_list = $("#lightbox_overlay .image-list").empty();
|
||||
|
||||
for (const img of images) {
|
||||
const src = img.getAttribute("src");
|
||||
|
||||
Reference in New Issue
Block a user