mod/machines/lib/javascript/decko/overlay.js.coffee in card-1.98.0 vs mod/machines/lib/javascript/decko/overlay.js.coffee in card-1.98.1
- old
+ new
@@ -29,9 +29,12 @@
replaceOverlay: (overlay) ->
@overlaySlot().trigger "slotDestroy"
@overlaySlot().replaceWith overlay
$(".bridge-sidebar .tab-pane:not(.active) .bridge-pills > .nav-item > .nav-link.active").removeClass("active")
+ isInOverlay: ->
+ return @closest(".card-slot._overlay").length
+
removeOverlay: () ->
@overlaySlot().removeOverlaySlot()
removeOverlaySlot: () ->
@trigger "slotDestroy"