Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$el.attr('tabindex', lastTabindex);
lastTabindex++;
};
// Try to find all selectable elements that appear _after_ this grid and set the tabindex explicitly
$gridEl.parents().prevAll().find("a, input, button, [tabindex]").filter(":visible:not(:disabled)").each((i, el) => overrideTabindex($(el)));
getSortedItems().forEach(($item) => {
$item.find("a").attr("tabindex", lastTabindex);
lastTabindex++;
});
// Try to find all selectable elements that appear _after_ this grid and set the tabindex explicitly
$gridEl.parents().nextAll().find("a, input, button, [tabindex]").filter(":visible:not(:disabled)").each((i, el) => overrideTabindex($(el)));
};
grid.on(Shuffle.EventType.LAYOUT, () => {
recalcTabindexes();
});
recalcTabindexes();
if ($gridEl.parents(".tab-pane").length > 0) {
// We're inside a tab content, so the list might disappear and reappear
let tabId = $gridEl.parents(".tab-pane").attr("id"),
$tab = $(".nav-link[href=\"#" + tabId + "\"]");
$tab.on("shown.bs.tab hidden.bs.tab", () => {
// TODO: We don't actually need to update and show the effect every time
grid.update();
});
}
let $groupRadios = $(".filter-organizations input[type=radio]"),
$groupDropdownLinks = $(".filter-organizations a"),