1
1
/*!
2
- * Bootstrap v3.3.7 (http://getbootstrap.com)
3
- * Copyright 2011-2016 Twitter, Inc.
2
+ * Bootstrap v3.4.0 (http://getbootstrap.com)
3
+ * Copyright 2011-2018 Twitter, Inc.
4
4
* Licensed under the MIT license
5
5
*/
6
6
@@ -17,7 +17,7 @@ if (typeof jQuery === 'undefined') {
17
17
} ( jQuery ) ;
18
18
19
19
/* ========================================================================
20
- * Bootstrap: transition.js v3.3.7
20
+ * Bootstrap: transition.js v3.4.0
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.7
80
+ * Bootstrap: alert.js v3.4.0
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.7 '
99
+ Alert . VERSION = '3.4.0 '
100
100
101
101
Alert . TRANSITION_DURATION = 150
102
102
@@ -109,7 +109,8 @@ if (typeof jQuery === 'undefined') {
109
109
selector = selector && selector . replace ( / .* (? = # [ ^ \s ] * $ ) / , '' ) // strip for ie7
110
110
}
111
111
112
- var $parent = $ ( selector === '#' ? [ ] : selector )
112
+ selector = selector === '#' ? [ ] : selector
113
+ var $parent = $ ( document ) . find ( selector )
113
114
114
115
if ( e ) e . preventDefault ( )
115
116
@@ -172,7 +173,7 @@ if (typeof jQuery === 'undefined') {
172
173
} ( jQuery ) ;
173
174
174
175
/* ========================================================================
175
- * Bootstrap: button.js v3.3.7
176
+ * Bootstrap: button.js v3.4.0
176
177
* http://getbootstrap.com/javascript/#buttons
177
178
* ========================================================================
178
179
* Copyright 2011-2016 Twitter, Inc.
@@ -192,7 +193,7 @@ if (typeof jQuery === 'undefined') {
192
193
this . isLoading = false
193
194
}
194
195
195
- Button . VERSION = '3.3.7 '
196
+ Button . VERSION = '3.4.0 '
196
197
197
198
Button . DEFAULTS = {
198
199
loadingText : 'loading...'
@@ -298,7 +299,7 @@ if (typeof jQuery === 'undefined') {
298
299
} ( jQuery ) ;
299
300
300
301
/* ========================================================================
301
- * Bootstrap: carousel.js v3.3.7
302
+ * Bootstrap: carousel.js v3.4.0
302
303
* http://getbootstrap.com/javascript/#carousel
303
304
* ========================================================================
304
305
* Copyright 2011-2016 Twitter, Inc.
@@ -329,7 +330,7 @@ if (typeof jQuery === 'undefined') {
329
330
. on ( 'mouseleave.bs.carousel' , $ . proxy ( this . cycle , this ) )
330
331
}
331
332
332
- Carousel . VERSION = '3.3.7 '
333
+ Carousel . VERSION = '3.4.0 '
333
334
334
335
Carousel . TRANSITION_DURATION = 600
335
336
@@ -443,7 +444,9 @@ if (typeof jQuery === 'undefined') {
443
444
var slidEvent = $ . Event ( 'slid.bs.carousel' , { relatedTarget : relatedTarget , direction : direction } ) // yes, "slid"
444
445
if ( $ . support . transition && this . $element . hasClass ( 'slide' ) ) {
445
446
$next . addClass ( type )
446
- $next [ 0 ] . offsetWidth // force reflow
447
+ if ( typeof $next === 'object' && $next . length ) {
448
+ $next [ 0 ] . offsetWidth // force reflow
449
+ }
447
450
$active . addClass ( direction )
448
451
$next . addClass ( direction )
449
452
$active
@@ -505,10 +508,17 @@ if (typeof jQuery === 'undefined') {
505
508
// =================
506
509
507
510
var clickHandler = function ( e ) {
508
- var href
509
511
var $this = $ ( this )
510
- var $target = $ ( $this . attr ( 'data-target' ) || ( href = $this . attr ( 'href' ) ) && href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) ) // strip for ie7
512
+ var href = $this . attr ( 'href' )
513
+ if ( href ) {
514
+ href = href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) // strip for ie7
515
+ }
516
+
517
+ var target = $this . attr ( 'data-target' ) || href
518
+ var $target = $ ( document ) . find ( target )
519
+
511
520
if ( ! $target . hasClass ( 'carousel' ) ) return
521
+
512
522
var options = $ . extend ( { } , $target . data ( ) , $this . data ( ) )
513
523
var slideIndex = $this . attr ( 'data-slide-to' )
514
524
if ( slideIndex ) options . interval = false
@@ -536,7 +546,7 @@ if (typeof jQuery === 'undefined') {
536
546
} ( jQuery ) ;
537
547
538
548
/* ========================================================================
539
- * Bootstrap: collapse.js v3.3.7
549
+ * Bootstrap: collapse.js v3.4.0
540
550
* http://getbootstrap.com/javascript/#collapse
541
551
* ========================================================================
542
552
* Copyright 2011-2016 Twitter, Inc.
@@ -567,7 +577,7 @@ if (typeof jQuery === 'undefined') {
567
577
if ( this . options . toggle ) this . toggle ( )
568
578
}
569
579
570
- Collapse . VERSION = '3.3.7 '
580
+ Collapse . VERSION = '3.4.0 '
571
581
572
582
Collapse . TRANSITION_DURATION = 350
573
583
@@ -697,7 +707,7 @@ if (typeof jQuery === 'undefined') {
697
707
var target = $trigger . attr ( 'data-target' )
698
708
|| ( href = $trigger . attr ( 'href' ) ) && href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) // strip for ie7
699
709
700
- return $ ( target )
710
+ return $ ( document ) . find ( target )
701
711
}
702
712
703
713
@@ -749,7 +759,7 @@ if (typeof jQuery === 'undefined') {
749
759
} ( jQuery ) ;
750
760
751
761
/* ========================================================================
752
- * Bootstrap: dropdown.js v3.3.7
762
+ * Bootstrap: dropdown.js v3.4.0
753
763
* http://getbootstrap.com/javascript/#dropdowns
754
764
* ========================================================================
755
765
* Copyright 2011-2016 Twitter, Inc.
@@ -769,7 +779,7 @@ if (typeof jQuery === 'undefined') {
769
779
$ ( element ) . on ( 'click.bs.dropdown' , this . toggle )
770
780
}
771
781
772
- Dropdown . VERSION = '3.3.7 '
782
+ Dropdown . VERSION = '3.4.0 '
773
783
774
784
function getParent ( $this ) {
775
785
var selector = $this . attr ( 'data-target' )
@@ -779,7 +789,7 @@ if (typeof jQuery === 'undefined') {
779
789
selector = selector && / # [ A - Z a - z ] / . test ( selector ) && selector . replace ( / .* (? = # [ ^ \s ] * $ ) / , '' ) // strip for ie7
780
790
}
781
791
782
- var $parent = selector && $ ( selector )
792
+ var $parent = selector && $ ( document ) . find ( selector )
783
793
784
794
return $parent && $parent . length ? $parent : $this . parent ( )
785
795
}
@@ -915,7 +925,7 @@ if (typeof jQuery === 'undefined') {
915
925
} ( jQuery ) ;
916
926
917
927
/* ========================================================================
918
- * Bootstrap: modal.js v3.3.7
928
+ * Bootstrap: modal.js v3.4.0
919
929
* http://getbootstrap.com/javascript/#modals
920
930
* ========================================================================
921
931
* Copyright 2011-2016 Twitter, Inc.
@@ -949,7 +959,7 @@ if (typeof jQuery === 'undefined') {
949
959
}
950
960
}
951
961
952
- Modal . VERSION = '3.3.7 '
962
+ Modal . VERSION = '3.4.0 '
953
963
954
964
Modal . TRANSITION_DURATION = 300
955
965
Modal . BACKDROP_TRANSITION_DURATION = 150
@@ -1238,7 +1248,10 @@ if (typeof jQuery === 'undefined') {
1238
1248
$ ( document ) . on ( 'click.bs.modal.data-api' , '[data-toggle="modal"]' , function ( e ) {
1239
1249
var $this = $ ( this )
1240
1250
var href = $this . attr ( 'href' )
1241
- var $target = $ ( $this . attr ( 'data-target' ) || ( href && href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) ) ) // strip for ie7
1251
+ var target = $this . attr ( 'data-target' ) ||
1252
+ ( href && href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) ) // strip for ie7
1253
+
1254
+ var $target = $ ( document ) . find ( target )
1242
1255
var option = $target . data ( 'bs.modal' ) ? 'toggle' : $ . extend ( { remote : ! / # / . test ( href ) && href } , $target . data ( ) , $this . data ( ) )
1243
1256
1244
1257
if ( $this . is ( 'a' ) ) e . preventDefault ( )
@@ -1255,7 +1268,7 @@ if (typeof jQuery === 'undefined') {
1255
1268
} ( jQuery ) ;
1256
1269
1257
1270
/* ========================================================================
1258
- * Bootstrap: tooltip.js v3.3.7
1271
+ * Bootstrap: tooltip.js v3.4.0
1259
1272
* http://getbootstrap.com/javascript/#tooltip
1260
1273
* Inspired by the original jQuery.tipsy by Jason Frame
1261
1274
* ========================================================================
@@ -1282,7 +1295,7 @@ if (typeof jQuery === 'undefined') {
1282
1295
this . init ( 'tooltip' , element , options )
1283
1296
}
1284
1297
1285
- Tooltip . VERSION = '3.3.7 '
1298
+ Tooltip . VERSION = '3.4.0 '
1286
1299
1287
1300
Tooltip . TRANSITION_DURATION = 150
1288
1301
@@ -1776,7 +1789,7 @@ if (typeof jQuery === 'undefined') {
1776
1789
} ( jQuery ) ;
1777
1790
1778
1791
/* ========================================================================
1779
- * Bootstrap: popover.js v3.3.7
1792
+ * Bootstrap: popover.js v3.4.0
1780
1793
* http://getbootstrap.com/javascript/#popovers
1781
1794
* ========================================================================
1782
1795
* Copyright 2011-2016 Twitter, Inc.
@@ -1796,7 +1809,7 @@ if (typeof jQuery === 'undefined') {
1796
1809
1797
1810
if ( ! $ . fn . tooltip ) throw new Error ( 'Popover requires tooltip.js' )
1798
1811
1799
- Popover . VERSION = '3.3.7 '
1812
+ Popover . VERSION = '3.4.0 '
1800
1813
1801
1814
Popover . DEFAULTS = $ . extend ( { } , $ . fn . tooltip . Constructor . DEFAULTS , {
1802
1815
placement : 'right' ,
@@ -1885,7 +1898,7 @@ if (typeof jQuery === 'undefined') {
1885
1898
} ( jQuery ) ;
1886
1899
1887
1900
/* ========================================================================
1888
- * Bootstrap: scrollspy.js v3.3.7
1901
+ * Bootstrap: scrollspy.js v3.4.0
1889
1902
* http://getbootstrap.com/javascript/#scrollspy
1890
1903
* ========================================================================
1891
1904
* Copyright 2011-2016 Twitter, Inc.
@@ -1914,7 +1927,7 @@ if (typeof jQuery === 'undefined') {
1914
1927
this . process ( )
1915
1928
}
1916
1929
1917
- ScrollSpy . VERSION = '3.3.7 '
1930
+ ScrollSpy . VERSION = '3.4.0 '
1918
1931
1919
1932
ScrollSpy . DEFAULTS = {
1920
1933
offset : 10
@@ -2058,7 +2071,7 @@ if (typeof jQuery === 'undefined') {
2058
2071
} ( jQuery ) ;
2059
2072
2060
2073
/* ========================================================================
2061
- * Bootstrap: tab.js v3.3.7
2074
+ * Bootstrap: tab.js v3.4.0
2062
2075
* http://getbootstrap.com/javascript/#tabs
2063
2076
* ========================================================================
2064
2077
* Copyright 2011-2016 Twitter, Inc.
@@ -2078,7 +2091,7 @@ if (typeof jQuery === 'undefined') {
2078
2091
// jscs:enable requireDollarBeforejQueryAssignment
2079
2092
}
2080
2093
2081
- Tab . VERSION = '3.3.7 '
2094
+ Tab . VERSION = '3.4.0 '
2082
2095
2083
2096
Tab . TRANSITION_DURATION = 150
2084
2097
@@ -2214,7 +2227,7 @@ if (typeof jQuery === 'undefined') {
2214
2227
} ( jQuery ) ;
2215
2228
2216
2229
/* ========================================================================
2217
- * Bootstrap: affix.js v3.3.7
2230
+ * Bootstrap: affix.js v3.4.0
2218
2231
* http://getbootstrap.com/javascript/#affix
2219
2232
* ========================================================================
2220
2233
* Copyright 2011-2016 Twitter, Inc.
@@ -2243,7 +2256,7 @@ if (typeof jQuery === 'undefined') {
2243
2256
this . checkPosition ( )
2244
2257
}
2245
2258
2246
- Affix . VERSION = '3.3.7 '
2259
+ Affix . VERSION = '3.4.0 '
2247
2260
2248
2261
Affix . RESET = 'affix affix-top affix-bottom'
2249
2262
0 commit comments