mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
js: Prefix jQuery object variable names with $.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -156,11 +156,11 @@ function hide_catalog_show_integration() {
|
||||
link = name;
|
||||
}
|
||||
}
|
||||
const category_el = $("<a></a>")
|
||||
const $category_el = $("<a></a>")
|
||||
.attr("href", "/integrations/" + link)
|
||||
.append('<h3 class="integration-category"></h3>');
|
||||
category_el.find(".integration-category").attr("data-category", link).text(category);
|
||||
$("#integration-instructions-group .categories").append(category_el);
|
||||
$category_el.find(".integration-category").attr("data-category", link).text(category);
|
||||
$("#integration-instructions-group .categories").append($category_el);
|
||||
}
|
||||
$("#integration-instructions-group").css({
|
||||
opacity: 0,
|
||||
@@ -305,10 +305,10 @@ function integration_events() {
|
||||
$('#integration-search input[type="text"]').on("keypress", (e) => {
|
||||
if (e.key === "Enter" && e.target.value !== "") {
|
||||
for (const integration_element of $(".integration-lozenges").children()) {
|
||||
const integration = $(integration_element).find(".integration-lozenge");
|
||||
const $integration = $(integration_element).find(".integration-lozenge");
|
||||
|
||||
if ($(integration).css("display") !== "none") {
|
||||
$(integration).closest("a")[0].click();
|
||||
if ($($integration).css("display") !== "none") {
|
||||
$($integration).closest("a")[0].click();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user