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

Function next

OpenReservation/wwwroot/Scripts/bootstrap.js:2067–2098  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2065 && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
2066
2067 function next() {
2068 $active
2069 .removeClass('active')
2070 .find('> .dropdown-menu > .active')
2071 .removeClass('active')
2072 .end()
2073 .find('[data-toggle="tab"]')
2074 .attr('aria-expanded', false)
2075
2076 element
2077 .addClass('active')
2078 .find('[data-toggle="tab"]')
2079 .attr('aria-expanded', true)
2080
2081 if (transition) {
2082 element[0].offsetWidth // reflow for transition
2083 element.addClass('in')
2084 } else {
2085 element.removeClass('fade')
2086 }
2087
2088 if (element.parent('.dropdown-menu').length) {
2089 element
2090 .closest('li.dropdown')
2091 .addClass('active')
2092 .end()
2093 .find('[data-toggle="tab"]')
2094 .attr('aria-expanded', true)
2095 }
2096
2097 callback && callback()
2098 }
2099
2100 $active.length && transition ?
2101 $active

Callers 1

bootstrap.jsFile · 0.70

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected