MCPcopy
hub / github.com/MrNothing/AI-Blocks / next

Function next

docs/assets/plugins/bootstrap/js/bootstrap.js:2117–2148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2115 && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
2116
2117 function next() {
2118 $active
2119 .removeClass('active')
2120 .find('> .dropdown-menu > .active')
2121 .removeClass('active')
2122 .end()
2123 .find('[data-toggle="tab"]')
2124 .attr('aria-expanded', false)
2125
2126 element
2127 .addClass('active')
2128 .find('[data-toggle="tab"]')
2129 .attr('aria-expanded', true)
2130
2131 if (transition) {
2132 element[0].offsetWidth // reflow for transition
2133 element.addClass('in')
2134 } else {
2135 element.removeClass('fade')
2136 }
2137
2138 if (element.parent('.dropdown-menu').length) {
2139 element
2140 .closest('li.dropdown')
2141 .addClass('active')
2142 .end()
2143 .find('[data-toggle="tab"]')
2144 .attr('aria-expanded', true)
2145 }
2146
2147 callback && callback()
2148 }
2149
2150 $active.length && transition ?
2151 $active

Callers 4

jquery-ui.jsFile · 0.85
prefilterFunction · 0.85
doneFunction · 0.85
bootstrap.jsFile · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected