mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
lol we dont' have affix(refresh)
This commit is contained in:
parent
7f9ff0ba5b
commit
bbe4625672
3
docs/assets/js/bootstrap-carousel.js
vendored
3
docs/assets/js/bootstrap-carousel.js
vendored
@ -97,7 +97,6 @@
|
|||||||
, isCycling = this.interval
|
, isCycling = this.interval
|
||||||
, direction = type == 'next' ? 'left' : 'right'
|
, direction = type == 'next' ? 'left' : 'right'
|
||||||
, fallback = type == 'next' ? 'first' : 'last'
|
, fallback = type == 'next' ? 'first' : 'last'
|
||||||
, $nextIndicator
|
|
||||||
, that = this
|
, that = this
|
||||||
, e
|
, e
|
||||||
|
|
||||||
@ -116,7 +115,7 @@
|
|||||||
if (this.$indicators.length) {
|
if (this.$indicators.length) {
|
||||||
this.$indicators.find('.active').removeClass('active')
|
this.$indicators.find('.active').removeClass('active')
|
||||||
this.$element.one('slid', function () {
|
this.$element.one('slid', function () {
|
||||||
$nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
||||||
$nextIndicator && $nextIndicator.addClass('active')
|
$nextIndicator && $nextIndicator.addClass('active')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
3
docs/assets/js/bootstrap.js
vendored
3
docs/assets/js/bootstrap.js
vendored
@ -358,7 +358,6 @@
|
|||||||
, isCycling = this.interval
|
, isCycling = this.interval
|
||||||
, direction = type == 'next' ? 'left' : 'right'
|
, direction = type == 'next' ? 'left' : 'right'
|
||||||
, fallback = type == 'next' ? 'first' : 'last'
|
, fallback = type == 'next' ? 'first' : 'last'
|
||||||
, $nextIndicator
|
|
||||||
, that = this
|
, that = this
|
||||||
, e
|
, e
|
||||||
|
|
||||||
@ -377,7 +376,7 @@
|
|||||||
if (this.$indicators.length) {
|
if (this.$indicators.length) {
|
||||||
this.$indicators.find('.active').removeClass('active')
|
this.$indicators.find('.active').removeClass('active')
|
||||||
this.$element.one('slid', function () {
|
this.$element.one('slid', function () {
|
||||||
$nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
||||||
$nextIndicator && $nextIndicator.addClass('active')
|
$nextIndicator && $nextIndicator.addClass('active')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1676,14 +1676,6 @@ $('.carousel').carousel({
|
|||||||
<p>Call the affix plugin via JavaScript:</p>
|
<p>Call the affix plugin via JavaScript:</p>
|
||||||
<pre class="prettyprint linenums">$('#navbar').affix()</pre>
|
<pre class="prettyprint linenums">$('#navbar').affix()</pre>
|
||||||
|
|
||||||
<h3>Methods</h3>
|
|
||||||
<h4>.affix('refresh')</h4>
|
|
||||||
<p>When using affix in conjunction with adding or removing of elements from the DOM, you'll want to call the refresh method:</p>
|
|
||||||
<pre class="prettyprint linenums">
|
|
||||||
$('[data-spy="affix"]').each(function () {
|
|
||||||
$(this).affix('refresh')
|
|
||||||
});
|
|
||||||
</pre>
|
|
||||||
<h3>Options</h3>
|
<h3>Options</h3>
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
|
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
|
8
docs/templates/pages/javascript.mustache
vendored
8
docs/templates/pages/javascript.mustache
vendored
@ -1606,14 +1606,6 @@ $('.carousel').carousel({
|
|||||||
<p>{{_i}}Call the affix plugin via JavaScript:{{/i}}</p>
|
<p>{{_i}}Call the affix plugin via JavaScript:{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">$('#navbar').affix()</pre>
|
<pre class="prettyprint linenums">$('#navbar').affix()</pre>
|
||||||
|
|
||||||
<h3>{{_i}}Methods{{/i}}</h3>
|
|
||||||
<h4>.affix('refresh')</h4>
|
|
||||||
<p>{{_i}}When using affix in conjunction with adding or removing of elements from the DOM, you'll want to call the refresh method:{{/i}}</p>
|
|
||||||
<pre class="prettyprint linenums">
|
|
||||||
$('[data-spy="affix"]').each(function () {
|
|
||||||
$(this).affix('refresh')
|
|
||||||
});
|
|
||||||
</pre>
|
|
||||||
<h3>{{_i}}Options{{/i}}</h3>
|
<h3>{{_i}}Options{{/i}}</h3>
|
||||||
<p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.{{/i}}</p>
|
<p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.{{/i}}</p>
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
|
Loading…
Reference in New Issue
Block a user