1
1
/*!
2
- * Bootstrap v3.3.6 (http://getbootstrap.com)
2
+ * Bootstrap v3.3.7 (http://getbootstrap.com)
3
3
* Copyright 2011-2016 Twitter, Inc.
4
4
* Licensed under the MIT license
5
5
*/
@@ -11,13 +11,13 @@ if (typeof jQuery === 'undefined') {
11
11
+ function ( $ ) {
12
12
'use strict' ;
13
13
var version = $ . fn . jquery . split ( ' ' ) [ 0 ] . split ( '.' )
14
- if ( ( version [ 0 ] < 2 && version [ 1 ] < 9 ) || ( version [ 0 ] == 1 && version [ 1 ] == 9 && version [ 2 ] < 1 ) || ( version [ 0 ] > 2 ) ) {
15
- throw new Error ( 'Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3 ' )
14
+ if ( ( version [ 0 ] < 2 && version [ 1 ] < 9 ) || ( version [ 0 ] == 1 && version [ 1 ] == 9 && version [ 2 ] < 1 ) || ( version [ 0 ] > 3 ) ) {
15
+ throw new Error ( 'Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4 ' )
16
16
}
17
17
} ( jQuery ) ;
18
18
19
19
/* ========================================================================
20
- * Bootstrap: transition.js v3.3.6
20
+ * Bootstrap: transition.js v3.3.7
21
21
* http://getbootstrap.com/javascript/#transitions
22
22
* ========================================================================
23
23
* Copyright 2011-2016 Twitter, Inc.
@@ -77,7 +77,7 @@ if (typeof jQuery === 'undefined') {
77
77
} ( jQuery ) ;
78
78
79
79
/* ========================================================================
80
- * Bootstrap: alert.js v3.3.6
80
+ * Bootstrap: alert.js v3.3.7
81
81
* http://getbootstrap.com/javascript/#alerts
82
82
* ========================================================================
83
83
* Copyright 2011-2016 Twitter, Inc.
@@ -96,7 +96,7 @@ if (typeof jQuery === 'undefined') {
96
96
$ ( el ) . on ( 'click' , dismiss , this . close )
97
97
}
98
98
99
- Alert . VERSION = '3.3.6 '
99
+ Alert . VERSION = '3.3.7 '
100
100
101
101
Alert . TRANSITION_DURATION = 150
102
102
@@ -109,7 +109,7 @@ if (typeof jQuery === 'undefined') {
109
109
selector = selector && selector . replace ( / .* (? = # [ ^ \s ] * $ ) / , '' ) // strip for ie7
110
110
}
111
111
112
- var $parent = $ ( selector )
112
+ var $parent = $ ( selector === '#' ? [ ] : selector )
113
113
114
114
if ( e ) e . preventDefault ( )
115
115
@@ -172,7 +172,7 @@ if (typeof jQuery === 'undefined') {
172
172
} ( jQuery ) ;
173
173
174
174
/* ========================================================================
175
- * Bootstrap: button.js v3.3.6
175
+ * Bootstrap: button.js v3.3.7
176
176
* http://getbootstrap.com/javascript/#buttons
177
177
* ========================================================================
178
178
* Copyright 2011-2016 Twitter, Inc.
@@ -192,7 +192,7 @@ if (typeof jQuery === 'undefined') {
192
192
this . isLoading = false
193
193
}
194
194
195
- Button . VERSION = '3.3.6 '
195
+ Button . VERSION = '3.3.7 '
196
196
197
197
Button . DEFAULTS = {
198
198
loadingText : 'loading...'
@@ -214,10 +214,10 @@ if (typeof jQuery === 'undefined') {
214
214
215
215
if ( state == 'loadingText' ) {
216
216
this . isLoading = true
217
- $el . addClass ( d ) . attr ( d , d )
217
+ $el . addClass ( d ) . attr ( d , d ) . prop ( d , true )
218
218
} else if ( this . isLoading ) {
219
219
this . isLoading = false
220
- $el . removeClass ( d ) . removeAttr ( d )
220
+ $el . removeClass ( d ) . removeAttr ( d ) . prop ( d , false )
221
221
}
222
222
} , this ) , 0 )
223
223
}
@@ -298,7 +298,7 @@ if (typeof jQuery === 'undefined') {
298
298
} ( jQuery ) ;
299
299
300
300
/* ========================================================================
301
- * Bootstrap: carousel.js v3.3.6
301
+ * Bootstrap: carousel.js v3.3.7
302
302
* http://getbootstrap.com/javascript/#carousel
303
303
* ========================================================================
304
304
* Copyright 2011-2016 Twitter, Inc.
@@ -329,7 +329,7 @@ if (typeof jQuery === 'undefined') {
329
329
. on ( 'mouseleave.bs.carousel' , $ . proxy ( this . cycle , this ) )
330
330
}
331
331
332
- Carousel . VERSION = '3.3.6 '
332
+ Carousel . VERSION = '3.3.7 '
333
333
334
334
Carousel . TRANSITION_DURATION = 600
335
335
@@ -536,7 +536,7 @@ if (typeof jQuery === 'undefined') {
536
536
} ( jQuery ) ;
537
537
538
538
/* ========================================================================
539
- * Bootstrap: collapse.js v3.3.6
539
+ * Bootstrap: collapse.js v3.3.7
540
540
* http://getbootstrap.com/javascript/#collapse
541
541
* ========================================================================
542
542
* Copyright 2011-2016 Twitter, Inc.
@@ -567,7 +567,7 @@ if (typeof jQuery === 'undefined') {
567
567
if ( this . options . toggle ) this . toggle ( )
568
568
}
569
569
570
- Collapse . VERSION = '3.3.6 '
570
+ Collapse . VERSION = '3.3.7 '
571
571
572
572
Collapse . TRANSITION_DURATION = 350
573
573
@@ -749,7 +749,7 @@ if (typeof jQuery === 'undefined') {
749
749
} ( jQuery ) ;
750
750
751
751
/* ========================================================================
752
- * Bootstrap: dropdown.js v3.3.6
752
+ * Bootstrap: dropdown.js v3.3.7
753
753
* http://getbootstrap.com/javascript/#dropdowns
754
754
* ========================================================================
755
755
* Copyright 2011-2016 Twitter, Inc.
@@ -769,7 +769,7 @@ if (typeof jQuery === 'undefined') {
769
769
$ ( element ) . on ( 'click.bs.dropdown' , this . toggle )
770
770
}
771
771
772
- Dropdown . VERSION = '3.3.6 '
772
+ Dropdown . VERSION = '3.3.7 '
773
773
774
774
function getParent ( $this ) {
775
775
var selector = $this . attr ( 'data-target' )
@@ -915,7 +915,7 @@ if (typeof jQuery === 'undefined') {
915
915
} ( jQuery ) ;
916
916
917
917
/* ========================================================================
918
- * Bootstrap: modal.js v3.3.6
918
+ * Bootstrap: modal.js v3.3.7
919
919
* http://getbootstrap.com/javascript/#modals
920
920
* ========================================================================
921
921
* Copyright 2011-2016 Twitter, Inc.
@@ -949,7 +949,7 @@ if (typeof jQuery === 'undefined') {
949
949
}
950
950
}
951
951
952
- Modal . VERSION = '3.3.6 '
952
+ Modal . VERSION = '3.3.7 '
953
953
954
954
Modal . TRANSITION_DURATION = 300
955
955
Modal . BACKDROP_TRANSITION_DURATION = 150
@@ -1255,7 +1255,7 @@ if (typeof jQuery === 'undefined') {
1255
1255
} ( jQuery ) ;
1256
1256
1257
1257
/* ========================================================================
1258
- * Bootstrap: tooltip.js v3.3.6
1258
+ * Bootstrap: tooltip.js v3.3.7
1259
1259
* http://getbootstrap.com/javascript/#tooltip
1260
1260
* Inspired by the original jQuery.tipsy by Jason Frame
1261
1261
* ========================================================================
@@ -1282,7 +1282,7 @@ if (typeof jQuery === 'undefined') {
1282
1282
this . init ( 'tooltip' , element , options )
1283
1283
}
1284
1284
1285
- Tooltip . VERSION = '3.3.6 '
1285
+ Tooltip . VERSION = '3.3.7 '
1286
1286
1287
1287
Tooltip . TRANSITION_DURATION = 150
1288
1288
@@ -1573,9 +1573,11 @@ if (typeof jQuery === 'undefined') {
1573
1573
1574
1574
function complete ( ) {
1575
1575
if ( that . hoverState != 'in' ) $tip . detach ( )
1576
- that . $element
1577
- . removeAttr ( 'aria-describedby' )
1578
- . trigger ( 'hidden.bs.' + that . type )
1576
+ if ( that . $element ) { // TODO: Check whether guarding this code with this `if` is really necessary.
1577
+ that . $element
1578
+ . removeAttr ( 'aria-describedby' )
1579
+ . trigger ( 'hidden.bs.' + that . type )
1580
+ }
1579
1581
callback && callback ( )
1580
1582
}
1581
1583
@@ -1618,7 +1620,10 @@ if (typeof jQuery === 'undefined') {
1618
1620
// width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
1619
1621
elRect = $ . extend ( { } , elRect , { width : elRect . right - elRect . left , height : elRect . bottom - elRect . top } )
1620
1622
}
1621
- var elOffset = isBody ? { top : 0 , left : 0 } : $element . offset ( )
1623
+ var isSvg = window . SVGElement && el instanceof window . SVGElement
1624
+ // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3.
1625
+ // See https://github.com/twbs/bootstrap/issues/20280
1626
+ var elOffset = isBody ? { top : 0 , left : 0 } : ( isSvg ? null : $element . offset ( ) )
1622
1627
var scroll = { scroll : isBody ? document . documentElement . scrollTop || document . body . scrollTop : $element . scrollTop ( ) }
1623
1628
var outerDims = isBody ? { width : $ ( window ) . width ( ) , height : $ ( window ) . height ( ) } : null
1624
1629
@@ -1734,6 +1739,7 @@ if (typeof jQuery === 'undefined') {
1734
1739
that . $tip = null
1735
1740
that . $arrow = null
1736
1741
that . $viewport = null
1742
+ that . $element = null
1737
1743
} )
1738
1744
}
1739
1745
@@ -1770,7 +1776,7 @@ if (typeof jQuery === 'undefined') {
1770
1776
} ( jQuery ) ;
1771
1777
1772
1778
/* ========================================================================
1773
- * Bootstrap: popover.js v3.3.6
1779
+ * Bootstrap: popover.js v3.3.7
1774
1780
* http://getbootstrap.com/javascript/#popovers
1775
1781
* ========================================================================
1776
1782
* Copyright 2011-2016 Twitter, Inc.
@@ -1790,7 +1796,7 @@ if (typeof jQuery === 'undefined') {
1790
1796
1791
1797
if ( ! $ . fn . tooltip ) throw new Error ( 'Popover requires tooltip.js' )
1792
1798
1793
- Popover . VERSION = '3.3.6 '
1799
+ Popover . VERSION = '3.3.7 '
1794
1800
1795
1801
Popover . DEFAULTS = $ . extend ( { } , $ . fn . tooltip . Constructor . DEFAULTS , {
1796
1802
placement : 'right' ,
@@ -1879,7 +1885,7 @@ if (typeof jQuery === 'undefined') {
1879
1885
} ( jQuery ) ;
1880
1886
1881
1887
/* ========================================================================
1882
- * Bootstrap: scrollspy.js v3.3.6
1888
+ * Bootstrap: scrollspy.js v3.3.7
1883
1889
* http://getbootstrap.com/javascript/#scrollspy
1884
1890
* ========================================================================
1885
1891
* Copyright 2011-2016 Twitter, Inc.
@@ -1908,7 +1914,7 @@ if (typeof jQuery === 'undefined') {
1908
1914
this . process ( )
1909
1915
}
1910
1916
1911
- ScrollSpy . VERSION = '3.3.6 '
1917
+ ScrollSpy . VERSION = '3.3.7 '
1912
1918
1913
1919
ScrollSpy . DEFAULTS = {
1914
1920
offset : 10
@@ -2052,7 +2058,7 @@ if (typeof jQuery === 'undefined') {
2052
2058
} ( jQuery ) ;
2053
2059
2054
2060
/* ========================================================================
2055
- * Bootstrap: tab.js v3.3.6
2061
+ * Bootstrap: tab.js v3.3.7
2056
2062
* http://getbootstrap.com/javascript/#tabs
2057
2063
* ========================================================================
2058
2064
* Copyright 2011-2016 Twitter, Inc.
@@ -2072,7 +2078,7 @@ if (typeof jQuery === 'undefined') {
2072
2078
// jscs:enable requireDollarBeforejQueryAssignment
2073
2079
}
2074
2080
2075
- Tab . VERSION = '3.3.6 '
2081
+ Tab . VERSION = '3.3.7 '
2076
2082
2077
2083
Tab . TRANSITION_DURATION = 150
2078
2084
@@ -2208,7 +2214,7 @@ if (typeof jQuery === 'undefined') {
2208
2214
} ( jQuery ) ;
2209
2215
2210
2216
/* ========================================================================
2211
- * Bootstrap: affix.js v3.3.6
2217
+ * Bootstrap: affix.js v3.3.7
2212
2218
* http://getbootstrap.com/javascript/#affix
2213
2219
* ========================================================================
2214
2220
* Copyright 2011-2016 Twitter, Inc.
@@ -2237,7 +2243,7 @@ if (typeof jQuery === 'undefined') {
2237
2243
this . checkPosition ( )
2238
2244
}
2239
2245
2240
- Affix . VERSION = '3.3.6 '
2246
+ Affix . VERSION = '3.3.7 '
2241
2247
2242
2248
Affix . RESET = 'affix affix-top affix-bottom'
2243
2249
0 commit comments