Sha256: d1fdd509f7ab1cd179c4df19c2b869b918e0a9b9ffe7c366efd4468edad0adc1
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
decko.slotReady (slot, slotter) -> slot.updateBridge(false, slotter) links = slot.find('ul._auto-single-select > li.nav-item > a.nav-link') if links.length == 1 $(links[0]).click() jQuery.fn.extend # overlayClosed=true means the bridge update was # triggered by closing an overlay updateBridge: (overlayClosed=false, slotter) -> return unless @closest(".bridge").length > 0 if @data("breadcrumb") @updateBreadcrumb() else if slotter and $(slotter).data("breadcrumb") $(slotter).updateBreadcrumb() if overlayClosed $(".bridge-pills > .nav-item > .nav-link.active").removeClass("active") updateBreadcrumb: () -> bc_item = $(".modal-header ._bridge-breadcrumb li:last-child") bc_item.text(this.data("breadcrumb")) bc_item.attr("class", "breadcrumb-item active #{this.data('breadcrumb-class')}")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
card-1.97.0 | mod/machines/lib/javascript/decko_bridge.js.coffee |