mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
upload: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
4814898ccf
commit
c356595ed5
@@ -217,7 +217,7 @@ export let upload_files = (
|
|||||||
// We implement this transition through triggering a click on the
|
// We implement this transition through triggering a click on the
|
||||||
// toggle button to take advantage of the existing plumbing for
|
// toggle button to take advantage of the existing plumbing for
|
||||||
// handling the compose and edit UIs.
|
// handling the compose and edit UIs.
|
||||||
if (config.markdown_preview_hide_button().is(":visible")) {
|
if (config.markdown_preview_hide_button().css("display") !== "none") {
|
||||||
config.markdown_preview_hide_button().trigger("click");
|
config.markdown_preview_hide_button().trigger("click");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -229,7 +229,10 @@ test("upload_files", async ({mock_template, override, override_rewire}) => {
|
|||||||
});
|
});
|
||||||
$("#compose-send-button").removeClass("disabled-message-send-controls");
|
$("#compose-send-button").removeClass("disabled-message-send-controls");
|
||||||
$("#compose_banners .upload_banner").remove();
|
$("#compose_banners .upload_banner").remove();
|
||||||
$("#compose .undo_markdown_preview").show();
|
$("#compose .undo_markdown_preview").css = (property) => {
|
||||||
|
assert.equal(property, "display");
|
||||||
|
return "flex";
|
||||||
|
};
|
||||||
|
|
||||||
banner_shown = false;
|
banner_shown = false;
|
||||||
mock_template("compose_banner/upload_banner.hbs", false, () => {
|
mock_template("compose_banner/upload_banner.hbs", false, () => {
|
||||||
|
Reference in New Issue
Block a user