1
1
/*!
2
- * Bootstrap v3.3.1 (http://getbootstrap.com)
3
- * Copyright 2011-2014 Twitter, Inc.
2
+ * Bootstrap v3.3.2 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
4
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
5
*/
6
6
@@ -9,17 +9,18 @@ if (typeof jQuery === 'undefined') {
9
9
}
10
10
11
11
+ function ( $ ) {
12
+ 'use strict' ;
12
13
var version = $ . fn . jquery . split ( ' ' ) [ 0 ] . split ( '.' )
13
14
if ( ( version [ 0 ] < 2 && version [ 1 ] < 9 ) || ( version [ 0 ] == 1 && version [ 1 ] == 9 && version [ 2 ] < 1 ) ) {
14
15
throw new Error ( 'Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher' )
15
16
}
16
17
} ( jQuery ) ;
17
18
18
19
/* ========================================================================
19
- * Bootstrap: transition.js v3.3.1
20
+ * Bootstrap: transition.js v3.3.2
20
21
* http://getbootstrap.com/javascript/#transitions
21
22
* ========================================================================
22
- * Copyright 2011-2014 Twitter, Inc.
23
+ * Copyright 2011-2015 Twitter, Inc.
23
24
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
24
25
* ======================================================================== */
25
26
@@ -76,10 +77,10 @@ if (typeof jQuery === 'undefined') {
76
77
} ( jQuery ) ;
77
78
78
79
/* ========================================================================
79
- * Bootstrap: alert.js v3.3.1
80
+ * Bootstrap: alert.js v3.3.2
80
81
* http://getbootstrap.com/javascript/#alerts
81
82
* ========================================================================
82
- * Copyright 2011-2014 Twitter, Inc.
83
+ * Copyright 2011-2015 Twitter, Inc.
83
84
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
84
85
* ======================================================================== */
85
86
@@ -95,7 +96,7 @@ if (typeof jQuery === 'undefined') {
95
96
$ ( el ) . on ( 'click' , dismiss , this . close )
96
97
}
97
98
98
- Alert . VERSION = '3.3.1 '
99
+ Alert . VERSION = '3.3.2 '
99
100
100
101
Alert . TRANSITION_DURATION = 150
101
102
@@ -171,10 +172,10 @@ if (typeof jQuery === 'undefined') {
171
172
} ( jQuery ) ;
172
173
173
174
/* ========================================================================
174
- * Bootstrap: button.js v3.3.1
175
+ * Bootstrap: button.js v3.3.2
175
176
* http://getbootstrap.com/javascript/#buttons
176
177
* ========================================================================
177
- * Copyright 2011-2014 Twitter, Inc.
178
+ * Copyright 2011-2015 Twitter, Inc.
178
179
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
179
180
* ======================================================================== */
180
181
@@ -191,7 +192,7 @@ if (typeof jQuery === 'undefined') {
191
192
this . isLoading = false
192
193
}
193
194
194
- Button . VERSION = '3.3.1 '
195
+ Button . VERSION = '3.3.2 '
195
196
196
197
Button . DEFAULTS = {
197
198
loadingText : 'loading...'
@@ -288,10 +289,10 @@ if (typeof jQuery === 'undefined') {
288
289
} ( jQuery ) ;
289
290
290
291
/* ========================================================================
291
- * Bootstrap: carousel.js v3.3.1
292
+ * Bootstrap: carousel.js v3.3.2
292
293
* http://getbootstrap.com/javascript/#carousel
293
294
* ========================================================================
294
- * Copyright 2011-2014 Twitter, Inc.
295
+ * Copyright 2011-2015 Twitter, Inc.
295
296
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
296
297
* ======================================================================== */
297
298
@@ -319,7 +320,7 @@ if (typeof jQuery === 'undefined') {
319
320
. on ( 'mouseleave.bs.carousel' , $ . proxy ( this . cycle , this ) )
320
321
}
321
322
322
- Carousel . VERSION = '3.3.1 '
323
+ Carousel . VERSION = '3.3.2 '
323
324
324
325
Carousel . TRANSITION_DURATION = 600
325
326
@@ -359,8 +360,11 @@ if (typeof jQuery === 'undefined') {
359
360
}
360
361
361
362
Carousel . prototype . getItemForDirection = function ( direction , active ) {
362
- var delta = direction == 'prev' ? - 1 : 1
363
363
var activeIndex = this . getItemIndex ( active )
364
+ var willWrap = ( direction == 'prev' && activeIndex === 0 )
365
+ || ( direction == 'next' && activeIndex == ( this . $items . length - 1 ) )
366
+ if ( willWrap && ! this . options . wrap ) return active
367
+ var delta = direction == 'prev' ? - 1 : 1
364
368
var itemIndex = ( activeIndex + delta ) % this . $items . length
365
369
return this . $items . eq ( itemIndex )
366
370
}
@@ -405,14 +409,8 @@ if (typeof jQuery === 'undefined') {
405
409
var $next = next || this . getItemForDirection ( type , $active )
406
410
var isCycling = this . interval
407
411
var direction = type == 'next' ? 'left' : 'right'
408
- var fallback = type == 'next' ? 'first' : 'last'
409
412
var that = this
410
413
411
- if ( ! $next . length ) {
412
- if ( ! this . options . wrap ) return
413
- $next = this . $element . find ( '.item' ) [ fallback ] ( )
414
- }
415
-
416
414
if ( $next . hasClass ( 'active' ) ) return ( this . sliding = false )
417
415
418
416
var relatedTarget = $next [ 0 ]
@@ -529,10 +527,10 @@ if (typeof jQuery === 'undefined') {
529
527
} ( jQuery ) ;
530
528
531
529
/* ========================================================================
532
- * Bootstrap: collapse.js v3.3.1
530
+ * Bootstrap: collapse.js v3.3.2
533
531
* http://getbootstrap.com/javascript/#collapse
534
532
* ========================================================================
535
- * Copyright 2011-2014 Twitter, Inc.
533
+ * Copyright 2011-2015 Twitter, Inc.
536
534
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
537
535
* ======================================================================== */
538
536
@@ -558,7 +556,7 @@ if (typeof jQuery === 'undefined') {
558
556
if ( this . options . toggle ) this . toggle ( )
559
557
}
560
558
561
- Collapse . VERSION = '3.3.1 '
559
+ Collapse . VERSION = '3.3.2 '
562
560
563
561
Collapse . TRANSITION_DURATION = 350
564
562
@@ -576,7 +574,7 @@ if (typeof jQuery === 'undefined') {
576
574
if ( this . transitioning || this . $element . hasClass ( 'in' ) ) return
577
575
578
576
var activesData
579
- var actives = this . $parent && this . $parent . find ( '> .panel') . children ( '.in, .collapsing' )
577
+ var actives = this . $parent && this . $parent . children ( ' .panel') . children ( '.in, .collapsing' )
580
578
581
579
if ( actives && actives . length ) {
582
580
activesData = actives . data ( 'bs.collapse' )
@@ -741,10 +739,10 @@ if (typeof jQuery === 'undefined') {
741
739
} ( jQuery ) ;
742
740
743
741
/* ========================================================================
744
- * Bootstrap: dropdown.js v3.3.1
742
+ * Bootstrap: dropdown.js v3.3.2
745
743
* http://getbootstrap.com/javascript/#dropdowns
746
744
* ========================================================================
747
- * Copyright 2011-2014 Twitter, Inc.
745
+ * Copyright 2011-2015 Twitter, Inc.
748
746
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
749
747
* ======================================================================== */
750
748
@@ -761,7 +759,7 @@ if (typeof jQuery === 'undefined') {
761
759
$ ( element ) . on ( 'click.bs.dropdown' , this . toggle )
762
760
}
763
761
764
- Dropdown . VERSION = '3.3.1 '
762
+ Dropdown . VERSION = '3.3.2 '
765
763
766
764
Dropdown . prototype . toggle = function ( e ) {
767
765
var $this = $ ( this )
@@ -903,10 +901,10 @@ if (typeof jQuery === 'undefined') {
903
901
} ( jQuery ) ;
904
902
905
903
/* ========================================================================
906
- * Bootstrap: modal.js v3.3.1
904
+ * Bootstrap: modal.js v3.3.2
907
905
* http://getbootstrap.com/javascript/#modals
908
906
* ========================================================================
909
- * Copyright 2011-2014 Twitter, Inc.
907
+ * Copyright 2011-2015 Twitter, Inc.
910
908
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
911
909
* ======================================================================== */
912
910
@@ -934,7 +932,7 @@ if (typeof jQuery === 'undefined') {
934
932
}
935
933
}
936
934
937
- Modal . VERSION = '3.3.1 '
935
+ Modal . VERSION = '3.3.2 '
938
936
939
937
Modal . TRANSITION_DURATION = 300
940
938
Modal . BACKDROP_TRANSITION_DURATION = 150
@@ -1228,11 +1226,11 @@ if (typeof jQuery === 'undefined') {
1228
1226
} ( jQuery ) ;
1229
1227
1230
1228
/* ========================================================================
1231
- * Bootstrap: tooltip.js v3.3.1
1229
+ * Bootstrap: tooltip.js v3.3.2
1232
1230
* http://getbootstrap.com/javascript/#tooltip
1233
1231
* Inspired by the original jQuery.tipsy by Jason Frame
1234
1232
* ========================================================================
1235
- * Copyright 2011-2014 Twitter, Inc.
1233
+ * Copyright 2011-2015 Twitter, Inc.
1236
1234
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1237
1235
* ======================================================================== */
1238
1236
@@ -1254,7 +1252,7 @@ if (typeof jQuery === 'undefined') {
1254
1252
this . init ( 'tooltip' , element , options )
1255
1253
}
1256
1254
1257
- Tooltip . VERSION = '3.3.1 '
1255
+ Tooltip . VERSION = '3.3.2 '
1258
1256
1259
1257
Tooltip . TRANSITION_DURATION = 150
1260
1258
@@ -1575,10 +1573,10 @@ if (typeof jQuery === 'undefined') {
1575
1573
}
1576
1574
1577
1575
Tooltip . prototype . getCalculatedOffset = function ( placement , pos , actualWidth , actualHeight ) {
1578
- return placement == 'bottom' ? { top : pos . top + pos . height , left : pos . left + pos . width / 2 - actualWidth / 2 } :
1579
- placement == 'top' ? { top : pos . top - actualHeight , left : pos . left + pos . width / 2 - actualWidth / 2 } :
1576
+ return placement == 'bottom' ? { top : pos . top + pos . height , left : pos . left + pos . width / 2 - actualWidth / 2 } :
1577
+ placement == 'top' ? { top : pos . top - actualHeight , left : pos . left + pos . width / 2 - actualWidth / 2 } :
1580
1578
placement == 'left' ? { top : pos . top + pos . height / 2 - actualHeight / 2 , left : pos . left - actualWidth } :
1581
- /* placement == 'right' */ { top : pos . top + pos . height / 2 - actualHeight / 2 , left : pos . left + pos . width }
1579
+ /* placement == 'right' */ { top : pos . top + pos . height / 2 - actualHeight / 2 , left : pos . left + pos . width }
1582
1580
1583
1581
}
1584
1582
@@ -1674,18 +1672,12 @@ if (typeof jQuery === 'undefined') {
1674
1672
1675
1673
function Plugin ( option ) {
1676
1674
return this . each ( function ( ) {
1677
- var $this = $ ( this )
1678
- var data = $this . data ( 'bs.tooltip' )
1679
- var options = typeof option == 'object' && option
1680
- var selector = options && options . selector
1675
+ var $this = $ ( this )
1676
+ var data = $this . data ( 'bs.tooltip' )
1677
+ var options = typeof option == 'object' && option
1681
1678
1682
1679
if ( ! data && option == 'destroy' ) return
1683
- if ( selector ) {
1684
- if ( ! data ) $this . data ( 'bs.tooltip' , ( data = { } ) )
1685
- if ( ! data [ selector ] ) data [ selector ] = new Tooltip ( this , options )
1686
- } else {
1687
- if ( ! data ) $this . data ( 'bs.tooltip' , ( data = new Tooltip ( this , options ) ) )
1688
- }
1680
+ if ( ! data ) $this . data ( 'bs.tooltip' , ( data = new Tooltip ( this , options ) ) )
1689
1681
if ( typeof option == 'string' ) data [ option ] ( )
1690
1682
} )
1691
1683
}
@@ -1707,10 +1699,10 @@ if (typeof jQuery === 'undefined') {
1707
1699
} ( jQuery ) ;
1708
1700
1709
1701
/* ========================================================================
1710
- * Bootstrap: popover.js v3.3.1
1702
+ * Bootstrap: popover.js v3.3.2
1711
1703
* http://getbootstrap.com/javascript/#popovers
1712
1704
* ========================================================================
1713
- * Copyright 2011-2014 Twitter, Inc.
1705
+ * Copyright 2011-2015 Twitter, Inc.
1714
1706
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1715
1707
* ======================================================================== */
1716
1708
@@ -1727,7 +1719,7 @@ if (typeof jQuery === 'undefined') {
1727
1719
1728
1720
if ( ! $ . fn . tooltip ) throw new Error ( 'Popover requires tooltip.js' )
1729
1721
1730
- Popover . VERSION = '3.3.1 '
1722
+ Popover . VERSION = '3.3.2 '
1731
1723
1732
1724
Popover . DEFAULTS = $ . extend ( { } , $ . fn . tooltip . Constructor . DEFAULTS , {
1733
1725
placement : 'right' ,
@@ -1794,18 +1786,12 @@ if (typeof jQuery === 'undefined') {
1794
1786
1795
1787
function Plugin ( option ) {
1796
1788
return this . each ( function ( ) {
1797
- var $this = $ ( this )
1798
- var data = $this . data ( 'bs.popover' )
1799
- var options = typeof option == 'object' && option
1800
- var selector = options && options . selector
1789
+ var $this = $ ( this )
1790
+ var data = $this . data ( 'bs.popover' )
1791
+ var options = typeof option == 'object' && option
1801
1792
1802
1793
if ( ! data && option == 'destroy' ) return
1803
- if ( selector ) {
1804
- if ( ! data ) $this . data ( 'bs.popover' , ( data = { } ) )
1805
- if ( ! data [ selector ] ) data [ selector ] = new Popover ( this , options )
1806
- } else {
1807
- if ( ! data ) $this . data ( 'bs.popover' , ( data = new Popover ( this , options ) ) )
1808
- }
1794
+ if ( ! data ) $this . data ( 'bs.popover' , ( data = new Popover ( this , options ) ) )
1809
1795
if ( typeof option == 'string' ) data [ option ] ( )
1810
1796
} )
1811
1797
}
@@ -1827,10 +1813,10 @@ if (typeof jQuery === 'undefined') {
1827
1813
} ( jQuery ) ;
1828
1814
1829
1815
/* ========================================================================
1830
- * Bootstrap: scrollspy.js v3.3.1
1816
+ * Bootstrap: scrollspy.js v3.3.2
1831
1817
* http://getbootstrap.com/javascript/#scrollspy
1832
1818
* ========================================================================
1833
- * Copyright 2011-2014 Twitter, Inc.
1819
+ * Copyright 2011-2015 Twitter, Inc.
1834
1820
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1835
1821
* ======================================================================== */
1836
1822
@@ -1858,7 +1844,7 @@ if (typeof jQuery === 'undefined') {
1858
1844
this . process ( )
1859
1845
}
1860
1846
1861
- ScrollSpy . VERSION = '3.3.1 '
1847
+ ScrollSpy . VERSION = '3.3.2 '
1862
1848
1863
1849
ScrollSpy . DEFAULTS = {
1864
1850
offset : 10
@@ -2003,10 +1989,10 @@ if (typeof jQuery === 'undefined') {
2003
1989
} ( jQuery ) ;
2004
1990
2005
1991
/* ========================================================================
2006
- * Bootstrap: tab.js v3.3.1
1992
+ * Bootstrap: tab.js v3.3.2
2007
1993
* http://getbootstrap.com/javascript/#tabs
2008
1994
* ========================================================================
2009
- * Copyright 2011-2014 Twitter, Inc.
1995
+ * Copyright 2011-2015 Twitter, Inc.
2010
1996
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2011
1997
* ======================================================================== */
2012
1998
@@ -2021,7 +2007,7 @@ if (typeof jQuery === 'undefined') {
2021
2007
this . element = $ ( element )
2022
2008
}
2023
2009
2024
- Tab . VERSION = '3.3.1 '
2010
+ Tab . VERSION = '3.3.2 '
2025
2011
2026
2012
Tab . TRANSITION_DURATION = 150
2027
2013
@@ -2157,10 +2143,10 @@ if (typeof jQuery === 'undefined') {
2157
2143
} ( jQuery ) ;
2158
2144
2159
2145
/* ========================================================================
2160
- * Bootstrap: affix.js v3.3.1
2146
+ * Bootstrap: affix.js v3.3.2
2161
2147
* http://getbootstrap.com/javascript/#affix
2162
2148
* ========================================================================
2163
- * Copyright 2011-2014 Twitter, Inc.
2149
+ * Copyright 2011-2015 Twitter, Inc.
2164
2150
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2165
2151
* ======================================================================== */
2166
2152
@@ -2186,7 +2172,7 @@ if (typeof jQuery === 'undefined') {
2186
2172
this . checkPosition ( )
2187
2173
}
2188
2174
2189
- Affix . VERSION = '3.3.1 '
2175
+ Affix . VERSION = '3.3.2 '
2190
2176
2191
2177
Affix . RESET = 'affix affix-top affix-bottom'
2192
2178
@@ -2211,7 +2197,7 @@ if (typeof jQuery === 'undefined') {
2211
2197
var colliderTop = initializing ? scrollTop : position . top
2212
2198
var colliderHeight = initializing ? targetHeight : height
2213
2199
2214
- if ( offsetTop != null && colliderTop <= offsetTop ) return 'top'
2200
+ if ( offsetTop != null && scrollTop <= offsetTop ) return 'top'
2215
2201
if ( offsetBottom != null && ( colliderTop + colliderHeight >= scrollHeight - offsetBottom ) ) return 'bottom'
2216
2202
2217
2203
return false
0 commit comments