1
1
/*!
2
- * Bootstrap v3.4.0 (http ://getbootstrap.com)
2
+ * Bootstrap v3.4.0 (https ://getbootstrap.com/ )
3
3
* Copyright 2011-2018 Twitter, Inc.
4
4
* Licensed under the MIT license
5
5
*/
@@ -18,17 +18,17 @@ if (typeof jQuery === 'undefined') {
18
18
19
19
/* ========================================================================
20
20
* Bootstrap: transition.js v3.4.0
21
- * http ://getbootstrap.com/javascript/#transitions
21
+ * https ://getbootstrap.com/docs/3.4 /javascript/#transitions
22
22
* ========================================================================
23
- * Copyright 2011-2016 Twitter, Inc.
23
+ * Copyright 2011-2018 Twitter, Inc.
24
24
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
25
25
* ======================================================================== */
26
26
27
27
28
28
+ function ( $ ) {
29
29
'use strict' ;
30
30
31
- // CSS TRANSITION SUPPORT (Shoutout: http ://www. modernizr.com/)
31
+ // CSS TRANSITION SUPPORT (Shoutout: https ://modernizr.com/)
32
32
// ============================================================
33
33
34
34
function transitionEnd ( ) {
@@ -50,7 +50,7 @@ if (typeof jQuery === 'undefined') {
50
50
return false // explicit for ie8 ( ._.)
51
51
}
52
52
53
- // http ://blog.alexmaccaw.com/css-transitions
53
+ // https ://blog.alexmaccaw.com/css-transitions
54
54
$ . fn . emulateTransitionEnd = function ( duration ) {
55
55
var called = false
56
56
var $el = this
@@ -78,9 +78,9 @@ if (typeof jQuery === 'undefined') {
78
78
79
79
/* ========================================================================
80
80
* Bootstrap: alert.js v3.4.0
81
- * http ://getbootstrap.com/javascript/#alerts
81
+ * https ://getbootstrap.com/docs/3.4 /javascript/#alerts
82
82
* ========================================================================
83
- * Copyright 2011-2016 Twitter, Inc.
83
+ * Copyright 2011-2018 Twitter, Inc.
84
84
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
85
85
* ======================================================================== */
86
86
@@ -174,9 +174,9 @@ if (typeof jQuery === 'undefined') {
174
174
175
175
/* ========================================================================
176
176
* Bootstrap: button.js v3.4.0
177
- * http ://getbootstrap.com/javascript/#buttons
177
+ * https ://getbootstrap.com/docs/3.4 /javascript/#buttons
178
178
* ========================================================================
179
- * Copyright 2011-2016 Twitter, Inc.
179
+ * Copyright 2011-2018 Twitter, Inc.
180
180
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
181
181
* ======================================================================== */
182
182
@@ -300,9 +300,9 @@ if (typeof jQuery === 'undefined') {
300
300
301
301
/* ========================================================================
302
302
* Bootstrap: carousel.js v3.4.0
303
- * http ://getbootstrap.com/javascript/#carousel
303
+ * https ://getbootstrap.com/docs/3.4 /javascript/#carousel
304
304
* ========================================================================
305
- * Copyright 2011-2016 Twitter, Inc.
305
+ * Copyright 2011-2018 Twitter, Inc.
306
306
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
307
307
* ======================================================================== */
308
308
@@ -547,9 +547,9 @@ if (typeof jQuery === 'undefined') {
547
547
548
548
/* ========================================================================
549
549
* Bootstrap: collapse.js v3.4.0
550
- * http ://getbootstrap.com/javascript/#collapse
550
+ * https ://getbootstrap.com/docs/3.4 /javascript/#collapse
551
551
* ========================================================================
552
- * Copyright 2011-2016 Twitter, Inc.
552
+ * Copyright 2011-2018 Twitter, Inc.
553
553
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
554
554
* ======================================================================== */
555
555
@@ -760,9 +760,9 @@ if (typeof jQuery === 'undefined') {
760
760
761
761
/* ========================================================================
762
762
* Bootstrap: dropdown.js v3.4.0
763
- * http ://getbootstrap.com/javascript/#dropdowns
763
+ * https ://getbootstrap.com/docs/3.4 /javascript/#dropdowns
764
764
* ========================================================================
765
- * Copyright 2011-2016 Twitter, Inc.
765
+ * Copyright 2011-2018 Twitter, Inc.
766
766
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
767
767
* ======================================================================== */
768
768
@@ -926,9 +926,9 @@ if (typeof jQuery === 'undefined') {
926
926
927
927
/* ========================================================================
928
928
* Bootstrap: modal.js v3.4.0
929
- * http ://getbootstrap.com/javascript/#modals
929
+ * https ://getbootstrap.com/docs/3.4 /javascript/#modals
930
930
* ========================================================================
931
- * Copyright 2011-2016 Twitter, Inc.
931
+ * Copyright 2011-2018 Twitter, Inc.
932
932
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
933
933
* ======================================================================== */
934
934
@@ -940,15 +940,16 @@ if (typeof jQuery === 'undefined') {
940
940
// ======================
941
941
942
942
var Modal = function ( element , options ) {
943
- this . options = options
944
- this . $body = $ ( document . body )
945
- this . $element = $ ( element )
946
- this . $dialog = this . $element . find ( '.modal-dialog' )
947
- this . $backdrop = null
948
- this . isShown = null
949
- this . originalBodyPad = null
950
- this . scrollbarWidth = 0
943
+ this . options = options
944
+ this . $body = $ ( document . body )
945
+ this . $element = $ ( element )
946
+ this . $dialog = this . $element . find ( '.modal-dialog' )
947
+ this . $backdrop = null
948
+ this . isShown = null
949
+ this . originalBodyPad = null
950
+ this . scrollbarWidth = 0
951
951
this . ignoreBackdropClick = false
952
+ this . fixedContent = '.navbar-fixed-top, .navbar-fixed-bottom'
952
953
953
954
if ( this . options . remote ) {
954
955
this . $element
@@ -959,7 +960,7 @@ if (typeof jQuery === 'undefined') {
959
960
}
960
961
}
961
962
962
- Modal . VERSION = '3.4.0'
963
+ Modal . VERSION = '3.4.0'
963
964
964
965
Modal . TRANSITION_DURATION = 300
965
966
Modal . BACKDROP_TRANSITION_DURATION = 150
@@ -976,7 +977,7 @@ if (typeof jQuery === 'undefined') {
976
977
977
978
Modal . prototype . show = function ( _relatedTarget ) {
978
979
var that = this
979
- var e = $ . Event ( 'show.bs.modal' , { relatedTarget : _relatedTarget } )
980
+ var e = $ . Event ( 'show.bs.modal' , { relatedTarget : _relatedTarget } )
980
981
981
982
this . $element . trigger ( e )
982
983
@@ -1067,8 +1068,8 @@ if (typeof jQuery === 'undefined') {
1067
1068
. off ( 'focusin.bs.modal' ) // guard against infinite focus loop
1068
1069
. on ( 'focusin.bs.modal' , $ . proxy ( function ( e ) {
1069
1070
if ( document !== e . target &&
1070
- this . $element [ 0 ] !== e . target &&
1071
- ! this . $element . has ( e . target ) . length ) {
1071
+ this . $element [ 0 ] !== e . target &&
1072
+ ! this . $element . has ( e . target ) . length ) {
1072
1073
this . $element . trigger ( 'focus' )
1073
1074
}
1074
1075
} , this ) )
@@ -1170,7 +1171,7 @@ if (typeof jQuery === 'undefined') {
1170
1171
var modalIsOverflowing = this . $element [ 0 ] . scrollHeight > document . documentElement . clientHeight
1171
1172
1172
1173
this . $element . css ( {
1173
- paddingLeft : ! this . bodyIsOverflowing && modalIsOverflowing ? this . scrollbarWidth : '' ,
1174
+ paddingLeft : ! this . bodyIsOverflowing && modalIsOverflowing ? this . scrollbarWidth : '' ,
1174
1175
paddingRight : this . bodyIsOverflowing && ! modalIsOverflowing ? this . scrollbarWidth : ''
1175
1176
} )
1176
1177
}
@@ -1195,11 +1196,26 @@ if (typeof jQuery === 'undefined') {
1195
1196
Modal . prototype . setScrollbar = function ( ) {
1196
1197
var bodyPad = parseInt ( ( this . $body . css ( 'padding-right' ) || 0 ) , 10 )
1197
1198
this . originalBodyPad = document . body . style . paddingRight || ''
1198
- if ( this . bodyIsOverflowing ) this . $body . css ( 'padding-right' , bodyPad + this . scrollbarWidth )
1199
+ var scrollbarWidth = this . scrollbarWidth
1200
+ if ( this . bodyIsOverflowing ) {
1201
+ this . $body . css ( 'padding-right' , bodyPad + scrollbarWidth )
1202
+ $ ( this . fixedContent ) . each ( function ( index , element ) {
1203
+ var actualPadding = element . style . paddingRight
1204
+ var calculatedPadding = $ ( element ) . css ( 'padding-right' )
1205
+ $ ( element )
1206
+ . data ( 'padding-right' , actualPadding )
1207
+ . css ( 'padding-right' , parseFloat ( calculatedPadding ) + scrollbarWidth + 'px' )
1208
+ } )
1209
+ }
1199
1210
}
1200
1211
1201
1212
Modal . prototype . resetScrollbar = function ( ) {
1202
1213
this . $body . css ( 'padding-right' , this . originalBodyPad )
1214
+ $ ( this . fixedContent ) . each ( function ( index , element ) {
1215
+ var padding = $ ( element ) . data ( 'padding-right' )
1216
+ $ ( element ) . removeData ( 'padding-right' )
1217
+ element . style . paddingRight = padding ? padding : ''
1218
+ } )
1203
1219
}
1204
1220
1205
1221
Modal . prototype . measureScrollbar = function ( ) { // thx walsh
@@ -1217,8 +1233,8 @@ if (typeof jQuery === 'undefined') {
1217
1233
1218
1234
function Plugin ( option , _relatedTarget ) {
1219
1235
return this . each ( function ( ) {
1220
- var $this = $ ( this )
1221
- var data = $this . data ( 'bs.modal' )
1236
+ var $this = $ ( this )
1237
+ var data = $this . data ( 'bs.modal' )
1222
1238
var options = $ . extend ( { } , Modal . DEFAULTS , $this . data ( ) , typeof option == 'object' && option )
1223
1239
1224
1240
if ( ! data ) $this . data ( 'bs.modal' , ( data = new Modal ( this , options ) ) )
@@ -1229,7 +1245,7 @@ if (typeof jQuery === 'undefined') {
1229
1245
1230
1246
var old = $ . fn . modal
1231
1247
1232
- $ . fn . modal = Plugin
1248
+ $ . fn . modal = Plugin
1233
1249
$ . fn . modal . Constructor = Modal
1234
1250
1235
1251
@@ -1246,13 +1262,13 @@ if (typeof jQuery === 'undefined') {
1246
1262
// ==============
1247
1263
1248
1264
$ ( document ) . on ( 'click.bs.modal.data-api' , '[data-toggle="modal"]' , function ( e ) {
1249
- var $this = $ ( this )
1250
- var href = $this . attr ( 'href' )
1251
- var target = $this . attr ( 'data-target' ) ||
1265
+ var $this = $ ( this )
1266
+ var href = $this . attr ( 'href' )
1267
+ var target = $this . attr ( 'data-target' ) ||
1252
1268
( href && href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) ) // strip for ie7
1253
1269
1254
1270
var $target = $ ( document ) . find ( target )
1255
- var option = $target . data ( 'bs.modal' ) ? 'toggle' : $ . extend ( { remote : ! / # / . test ( href ) && href } , $target . data ( ) , $this . data ( ) )
1271
+ var option = $target . data ( 'bs.modal' ) ? 'toggle' : $ . extend ( { remote : ! / # / . test ( href ) && href } , $target . data ( ) , $this . data ( ) )
1256
1272
1257
1273
if ( $this . is ( 'a' ) ) e . preventDefault ( )
1258
1274
@@ -1269,10 +1285,10 @@ if (typeof jQuery === 'undefined') {
1269
1285
1270
1286
/* ========================================================================
1271
1287
* Bootstrap: tooltip.js v3.4.0
1272
- * http ://getbootstrap.com/javascript/#tooltip
1288
+ * https ://getbootstrap.com/docs/3.4 /javascript/#tooltip
1273
1289
* Inspired by the original jQuery.tipsy by Jason Frame
1274
1290
* ========================================================================
1275
- * Copyright 2011-2016 Twitter, Inc.
1291
+ * Copyright 2011-2018 Twitter, Inc.
1276
1292
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1277
1293
* ======================================================================== */
1278
1294
@@ -1790,9 +1806,9 @@ if (typeof jQuery === 'undefined') {
1790
1806
1791
1807
/* ========================================================================
1792
1808
* Bootstrap: popover.js v3.4.0
1793
- * http ://getbootstrap.com/javascript/#popovers
1809
+ * https ://getbootstrap.com/docs/3.4 /javascript/#popovers
1794
1810
* ========================================================================
1795
- * Copyright 2011-2016 Twitter, Inc.
1811
+ * Copyright 2011-2018 Twitter, Inc.
1796
1812
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1797
1813
* ======================================================================== */
1798
1814
@@ -1857,8 +1873,8 @@ if (typeof jQuery === 'undefined') {
1857
1873
1858
1874
return $e . attr ( 'data-content' )
1859
1875
|| ( typeof o . content == 'function' ?
1860
- o . content . call ( $e [ 0 ] ) :
1861
- o . content )
1876
+ o . content . call ( $e [ 0 ] ) :
1877
+ o . content )
1862
1878
}
1863
1879
1864
1880
Popover . prototype . arrow = function ( ) {
@@ -1899,9 +1915,9 @@ if (typeof jQuery === 'undefined') {
1899
1915
1900
1916
/* ========================================================================
1901
1917
* Bootstrap: scrollspy.js v3.4.0
1902
- * http ://getbootstrap.com/javascript/#scrollspy
1918
+ * https ://getbootstrap.com/docs/3.4 /javascript/#scrollspy
1903
1919
* ========================================================================
1904
- * Copyright 2011-2016 Twitter, Inc.
1920
+ * Copyright 2011-2018 Twitter, Inc.
1905
1921
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1906
1922
* ======================================================================== */
1907
1923
@@ -2072,9 +2088,9 @@ if (typeof jQuery === 'undefined') {
2072
2088
2073
2089
/* ========================================================================
2074
2090
* Bootstrap: tab.js v3.4.0
2075
- * http ://getbootstrap.com/javascript/#tabs
2091
+ * https ://getbootstrap.com/docs/3.4 /javascript/#tabs
2076
2092
* ========================================================================
2077
- * Copyright 2011-2016 Twitter, Inc.
2093
+ * Copyright 2011-2018 Twitter, Inc.
2078
2094
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2079
2095
* ======================================================================== */
2080
2096
@@ -2145,15 +2161,15 @@ if (typeof jQuery === 'undefined') {
2145
2161
$active
2146
2162
. removeClass ( 'active' )
2147
2163
. find ( '> .dropdown-menu > .active' )
2148
- . removeClass ( 'active' )
2164
+ . removeClass ( 'active' )
2149
2165
. end ( )
2150
2166
. find ( '[data-toggle="tab"]' )
2151
- . attr ( 'aria-expanded' , false )
2167
+ . attr ( 'aria-expanded' , false )
2152
2168
2153
2169
element
2154
2170
. addClass ( 'active' )
2155
2171
. find ( '[data-toggle="tab"]' )
2156
- . attr ( 'aria-expanded' , true )
2172
+ . attr ( 'aria-expanded' , true )
2157
2173
2158
2174
if ( transition ) {
2159
2175
element [ 0 ] . offsetWidth // reflow for transition
@@ -2165,10 +2181,10 @@ if (typeof jQuery === 'undefined') {
2165
2181
if ( element . parent ( '.dropdown-menu' ) . length ) {
2166
2182
element
2167
2183
. closest ( 'li.dropdown' )
2168
- . addClass ( 'active' )
2184
+ . addClass ( 'active' )
2169
2185
. end ( )
2170
2186
. find ( '[data-toggle="tab"]' )
2171
- . attr ( 'aria-expanded' , true )
2187
+ . attr ( 'aria-expanded' , true )
2172
2188
}
2173
2189
2174
2190
callback && callback ( )
@@ -2228,9 +2244,9 @@ if (typeof jQuery === 'undefined') {
2228
2244
2229
2245
/* ========================================================================
2230
2246
* Bootstrap: affix.js v3.4.0
2231
- * http ://getbootstrap.com/javascript/#affix
2247
+ * https ://getbootstrap.com/docs/3.4 /javascript/#affix
2232
2248
* ========================================================================
2233
- * Copyright 2011-2016 Twitter, Inc.
2249
+ * Copyright 2011-2018 Twitter, Inc.
2234
2250
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2235
2251
* ======================================================================== */
2236
2252
0 commit comments