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

Function getParent

OpenReservation/wwwroot/Scripts/bootstrap.js:745–756  ·  view source on GitHub ↗
($this)

Source from the content-addressed store, hash-verified

743 Dropdown.VERSION = '3.3.5'
744
745 function getParent($this) {
746 var selector = $this.attr('data-target')
747
748 if (!selector) {
749 selector = $this.attr('href')
750 selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
751 }
752
753 var $parent = selector && $(selector)
754
755 return $parent && $parent.length ? $parent : $this.parent()
756 }
757
758 function clearMenus(e) {
759 if (e && e.which === 3) return

Callers 2

clearMenusFunction · 0.85
bootstrap.jsFile · 0.85

Calls 1

$Function · 0.70

Tested by

no test coverage detected