MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / clearMenus

Function clearMenus

OpenReservation/wwwroot/Scripts/bootstrap.js:758–777  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

756 }
757
758 function clearMenus(e) {
759 if (e && e.which === 3) return
760 $(backdrop).remove()
761 $(toggle).each(function () {
762 var $this = $(this)
763 var $parent = getParent($this)
764 var relatedTarget = { relatedTarget: this }
765
766 if (!$parent.hasClass('open')) return
767
768 if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return
769
770 $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
771
772 if (e.isDefaultPrevented()) return
773
774 $this.attr('aria-expanded', 'false')
775 $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
776 })
777 }
778
779 Dropdown.prototype.toggle = function (e) {
780 var $this = $(this)

Callers 1

bootstrap.jsFile · 0.85

Calls 2

getParentFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected