Sha256: 67262d59a9cec526d03ef042815aa4f27639a8df6bfbac29f6cf4927d61bf04a
Contents?: true
Size: 818 Bytes
Versions: 31
Compression:
Stored size: 818 Bytes
Contents
$(() => { const $processesGrid = $("#processes-grid"); const $loading = $processesGrid.find(".loading"); const filterLinksSelector = ".order-by__tabs a" $loading.hide(); $processesGrid.on("click", filterLinksSelector, (event) => { const $processesGridCards = $processesGrid.find(".card-grid .column"); let $target = $(event.target); // IE11 matches the <strong> element inside the filtering anchor element // as the `event.target` breaking the functionality below. if (!$target.is("a")) { $target = $target.parents("a"); } $(filterLinksSelector).removeClass("is-active"); $target.addClass("is-active"); $processesGridCards.hide(); $loading.show(); if (window.history) { window.history.pushState(null, null, $target.attr("href")); } }); });
Version data entries
31 entries across 31 versions & 1 rubygems