11/*!
2- * Bootstrap v3.4.0 (http ://getbootstrap.com)
2+ * Bootstrap v3.4.0 (https ://getbootstrap.com/ )
33 * Copyright 2011-2018 Twitter, Inc.
44 * Licensed under the MIT license
55 */
@@ -18,17 +18,17 @@ if (typeof jQuery === 'undefined') {
1818
1919/* ========================================================================
2020 * Bootstrap: transition.js v3.4.0
21- * http ://getbootstrap.com/javascript/#transitions
21+ * https ://getbootstrap.com/docs/3.4 /javascript/#transitions
2222 * ========================================================================
23- * Copyright 2011-2016 Twitter, Inc.
23+ * Copyright 2011-2018 Twitter, Inc.
2424 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2525 * ======================================================================== */
2626
2727
2828+ function ( $ ) {
2929 'use strict' ;
3030
31- // CSS TRANSITION SUPPORT (Shoutout: http ://www. modernizr.com/)
31+ // CSS TRANSITION SUPPORT (Shoutout: https ://modernizr.com/)
3232 // ============================================================
3333
3434 function transitionEnd ( ) {
@@ -50,7 +50,7 @@ if (typeof jQuery === 'undefined') {
5050 return false // explicit for ie8 ( ._.)
5151 }
5252
53- // http ://blog.alexmaccaw.com/css-transitions
53+ // https ://blog.alexmaccaw.com/css-transitions
5454 $ . fn . emulateTransitionEnd = function ( duration ) {
5555 var called = false
5656 var $el = this
@@ -78,9 +78,9 @@ if (typeof jQuery === 'undefined') {
7878
7979/* ========================================================================
8080 * Bootstrap: alert.js v3.4.0
81- * http ://getbootstrap.com/javascript/#alerts
81+ * https ://getbootstrap.com/docs/3.4 /javascript/#alerts
8282 * ========================================================================
83- * Copyright 2011-2016 Twitter, Inc.
83+ * Copyright 2011-2018 Twitter, Inc.
8484 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
8585 * ======================================================================== */
8686
@@ -174,9 +174,9 @@ if (typeof jQuery === 'undefined') {
174174
175175/* ========================================================================
176176 * Bootstrap: button.js v3.4.0
177- * http ://getbootstrap.com/javascript/#buttons
177+ * https ://getbootstrap.com/docs/3.4 /javascript/#buttons
178178 * ========================================================================
179- * Copyright 2011-2016 Twitter, Inc.
179+ * Copyright 2011-2018 Twitter, Inc.
180180 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
181181 * ======================================================================== */
182182
@@ -300,9 +300,9 @@ if (typeof jQuery === 'undefined') {
300300
301301/* ========================================================================
302302 * Bootstrap: carousel.js v3.4.0
303- * http ://getbootstrap.com/javascript/#carousel
303+ * https ://getbootstrap.com/docs/3.4 /javascript/#carousel
304304 * ========================================================================
305- * Copyright 2011-2016 Twitter, Inc.
305+ * Copyright 2011-2018 Twitter, Inc.
306306 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
307307 * ======================================================================== */
308308
@@ -547,9 +547,9 @@ if (typeof jQuery === 'undefined') {
547547
548548/* ========================================================================
549549 * Bootstrap: collapse.js v3.4.0
550- * http ://getbootstrap.com/javascript/#collapse
550+ * https ://getbootstrap.com/docs/3.4 /javascript/#collapse
551551 * ========================================================================
552- * Copyright 2011-2016 Twitter, Inc.
552+ * Copyright 2011-2018 Twitter, Inc.
553553 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
554554 * ======================================================================== */
555555
@@ -760,9 +760,9 @@ if (typeof jQuery === 'undefined') {
760760
761761/* ========================================================================
762762 * Bootstrap: dropdown.js v3.4.0
763- * http ://getbootstrap.com/javascript/#dropdowns
763+ * https ://getbootstrap.com/docs/3.4 /javascript/#dropdowns
764764 * ========================================================================
765- * Copyright 2011-2016 Twitter, Inc.
765+ * Copyright 2011-2018 Twitter, Inc.
766766 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
767767 * ======================================================================== */
768768
@@ -926,9 +926,9 @@ if (typeof jQuery === 'undefined') {
926926
927927/* ========================================================================
928928 * Bootstrap: modal.js v3.4.0
929- * http ://getbootstrap.com/javascript/#modals
929+ * https ://getbootstrap.com/docs/3.4 /javascript/#modals
930930 * ========================================================================
931- * Copyright 2011-2016 Twitter, Inc.
931+ * Copyright 2011-2018 Twitter, Inc.
932932 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
933933 * ======================================================================== */
934934
@@ -940,15 +940,16 @@ if (typeof jQuery === 'undefined') {
940940 // ======================
941941
942942 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
951951 this . ignoreBackdropClick = false
952+ this . fixedContent = '.navbar-fixed-top, .navbar-fixed-bottom'
952953
953954 if ( this . options . remote ) {
954955 this . $element
@@ -959,7 +960,7 @@ if (typeof jQuery === 'undefined') {
959960 }
960961 }
961962
962- Modal . VERSION = '3.4.0'
963+ Modal . VERSION = '3.4.0'
963964
964965 Modal . TRANSITION_DURATION = 300
965966 Modal . BACKDROP_TRANSITION_DURATION = 150
@@ -976,7 +977,7 @@ if (typeof jQuery === 'undefined') {
976977
977978 Modal . prototype . show = function ( _relatedTarget ) {
978979 var that = this
979- var e = $ . Event ( 'show.bs.modal' , { relatedTarget : _relatedTarget } )
980+ var e = $ . Event ( 'show.bs.modal' , { relatedTarget : _relatedTarget } )
980981
981982 this . $element . trigger ( e )
982983
@@ -1067,8 +1068,8 @@ if (typeof jQuery === 'undefined') {
10671068 . off ( 'focusin.bs.modal' ) // guard against infinite focus loop
10681069 . on ( 'focusin.bs.modal' , $ . proxy ( function ( e ) {
10691070 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 ) {
10721073 this . $element . trigger ( 'focus' )
10731074 }
10741075 } , this ) )
@@ -1170,7 +1171,7 @@ if (typeof jQuery === 'undefined') {
11701171 var modalIsOverflowing = this . $element [ 0 ] . scrollHeight > document . documentElement . clientHeight
11711172
11721173 this . $element . css ( {
1173- paddingLeft : ! this . bodyIsOverflowing && modalIsOverflowing ? this . scrollbarWidth : '' ,
1174+ paddingLeft : ! this . bodyIsOverflowing && modalIsOverflowing ? this . scrollbarWidth : '' ,
11741175 paddingRight : this . bodyIsOverflowing && ! modalIsOverflowing ? this . scrollbarWidth : ''
11751176 } )
11761177 }
@@ -1195,11 +1196,26 @@ if (typeof jQuery === 'undefined') {
11951196 Modal . prototype . setScrollbar = function ( ) {
11961197 var bodyPad = parseInt ( ( this . $body . css ( 'padding-right' ) || 0 ) , 10 )
11971198 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+ }
11991210 }
12001211
12011212 Modal . prototype . resetScrollbar = function ( ) {
12021213 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+ } )
12031219 }
12041220
12051221 Modal . prototype . measureScrollbar = function ( ) { // thx walsh
@@ -1217,8 +1233,8 @@ if (typeof jQuery === 'undefined') {
12171233
12181234 function Plugin ( option , _relatedTarget ) {
12191235 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' )
12221238 var options = $ . extend ( { } , Modal . DEFAULTS , $this . data ( ) , typeof option == 'object' && option )
12231239
12241240 if ( ! data ) $this . data ( 'bs.modal' , ( data = new Modal ( this , options ) ) )
@@ -1229,7 +1245,7 @@ if (typeof jQuery === 'undefined') {
12291245
12301246 var old = $ . fn . modal
12311247
1232- $ . fn . modal = Plugin
1248+ $ . fn . modal = Plugin
12331249 $ . fn . modal . Constructor = Modal
12341250
12351251
@@ -1246,13 +1262,13 @@ if (typeof jQuery === 'undefined') {
12461262 // ==============
12471263
12481264 $ ( 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' ) ||
12521268 ( href && href . replace ( / .* (? = # [ ^ \s ] + $ ) / , '' ) ) // strip for ie7
12531269
12541270 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 ( ) )
12561272
12571273 if ( $this . is ( 'a' ) ) e . preventDefault ( )
12581274
@@ -1269,10 +1285,10 @@ if (typeof jQuery === 'undefined') {
12691285
12701286/* ========================================================================
12711287 * Bootstrap: tooltip.js v3.4.0
1272- * http ://getbootstrap.com/javascript/#tooltip
1288+ * https ://getbootstrap.com/docs/3.4 /javascript/#tooltip
12731289 * Inspired by the original jQuery.tipsy by Jason Frame
12741290 * ========================================================================
1275- * Copyright 2011-2016 Twitter, Inc.
1291+ * Copyright 2011-2018 Twitter, Inc.
12761292 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
12771293 * ======================================================================== */
12781294
@@ -1790,9 +1806,9 @@ if (typeof jQuery === 'undefined') {
17901806
17911807/* ========================================================================
17921808 * Bootstrap: popover.js v3.4.0
1793- * http ://getbootstrap.com/javascript/#popovers
1809+ * https ://getbootstrap.com/docs/3.4 /javascript/#popovers
17941810 * ========================================================================
1795- * Copyright 2011-2016 Twitter, Inc.
1811+ * Copyright 2011-2018 Twitter, Inc.
17961812 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
17971813 * ======================================================================== */
17981814
@@ -1857,8 +1873,8 @@ if (typeof jQuery === 'undefined') {
18571873
18581874 return $e . attr ( 'data-content' )
18591875 || ( typeof o . content == 'function' ?
1860- o . content . call ( $e [ 0 ] ) :
1861- o . content )
1876+ o . content . call ( $e [ 0 ] ) :
1877+ o . content )
18621878 }
18631879
18641880 Popover . prototype . arrow = function ( ) {
@@ -1899,9 +1915,9 @@ if (typeof jQuery === 'undefined') {
18991915
19001916/* ========================================================================
19011917 * Bootstrap: scrollspy.js v3.4.0
1902- * http ://getbootstrap.com/javascript/#scrollspy
1918+ * https ://getbootstrap.com/docs/3.4 /javascript/#scrollspy
19031919 * ========================================================================
1904- * Copyright 2011-2016 Twitter, Inc.
1920+ * Copyright 2011-2018 Twitter, Inc.
19051921 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
19061922 * ======================================================================== */
19071923
@@ -2072,9 +2088,9 @@ if (typeof jQuery === 'undefined') {
20722088
20732089/* ========================================================================
20742090 * Bootstrap: tab.js v3.4.0
2075- * http ://getbootstrap.com/javascript/#tabs
2091+ * https ://getbootstrap.com/docs/3.4 /javascript/#tabs
20762092 * ========================================================================
2077- * Copyright 2011-2016 Twitter, Inc.
2093+ * Copyright 2011-2018 Twitter, Inc.
20782094 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
20792095 * ======================================================================== */
20802096
@@ -2145,15 +2161,15 @@ if (typeof jQuery === 'undefined') {
21452161 $active
21462162 . removeClass ( 'active' )
21472163 . find ( '> .dropdown-menu > .active' )
2148- . removeClass ( 'active' )
2164+ . removeClass ( 'active' )
21492165 . end ( )
21502166 . find ( '[data-toggle="tab"]' )
2151- . attr ( 'aria-expanded' , false )
2167+ . attr ( 'aria-expanded' , false )
21522168
21532169 element
21542170 . addClass ( 'active' )
21552171 . find ( '[data-toggle="tab"]' )
2156- . attr ( 'aria-expanded' , true )
2172+ . attr ( 'aria-expanded' , true )
21572173
21582174 if ( transition ) {
21592175 element [ 0 ] . offsetWidth // reflow for transition
@@ -2165,10 +2181,10 @@ if (typeof jQuery === 'undefined') {
21652181 if ( element . parent ( '.dropdown-menu' ) . length ) {
21662182 element
21672183 . closest ( 'li.dropdown' )
2168- . addClass ( 'active' )
2184+ . addClass ( 'active' )
21692185 . end ( )
21702186 . find ( '[data-toggle="tab"]' )
2171- . attr ( 'aria-expanded' , true )
2187+ . attr ( 'aria-expanded' , true )
21722188 }
21732189
21742190 callback && callback ( )
@@ -2228,9 +2244,9 @@ if (typeof jQuery === 'undefined') {
22282244
22292245/* ========================================================================
22302246 * Bootstrap: affix.js v3.4.0
2231- * http ://getbootstrap.com/javascript/#affix
2247+ * https ://getbootstrap.com/docs/3.4 /javascript/#affix
22322248 * ========================================================================
2233- * Copyright 2011-2016 Twitter, Inc.
2249+ * Copyright 2011-2018 Twitter, Inc.
22342250 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
22352251 * ======================================================================== */
22362252
0 commit comments