diff options
author | Mark Otto <markdotto@gmail.com> | 2017-06-17 20:13:43 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-06-17 20:13:43 +0300 |
commit | ce98a1da5bd8f50153c9924c34fd465f87814117 (patch) | |
tree | c52908d1e5170f04779226a9d579494169301a1c /js/dist/modal.js | |
parent | 816d5bd2e3268aac543ecfe534290879ee59da1d (diff) |
build
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r-- | js/dist/modal.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js index 563d8f5735..6b9e134f1f 100644 --- a/js/dist/modal.js +++ b/js/dist/modal.js @@ -71,14 +71,14 @@ var Modal = function ($) { DATA_DISMISS: '[data-dismiss="modal"]', FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top', NAVBAR_TOGGLER: '.navbar-toggler' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Modal = function () { function Modal(element, config) { _classCallCheck(this, Modal); @@ -270,8 +270,8 @@ var Modal = function ($) { Modal.prototype._enforceFocus = function _enforceFocus() { var _this4 = this; - $(document).off(Event.FOCUSIN) // guard against infinite focus loop - .on(Event.FOCUSIN, function (event) { + $(document).off(Event.FOCUSIN // guard against infinite focus loop + ).on(Event.FOCUSIN, function (event) { if (document !== event.target && _this4._element !== event.target && !$(_this4._element).has(event.target).length) { _this4._element.focus(); } @@ -433,17 +433,17 @@ var Modal = function ($) { var actualPadding = $(element)[0].style.paddingRight; var calculatedPadding = $(element).css('padding-right'); $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + 'px'); - }); + } // Adjust navbar-toggler margin - $(Selector.NAVBAR_TOGGLER).each(function (index, element) { + );$(Selector.NAVBAR_TOGGLER).each(function (index, element) { var actualMargin = $(element)[0].style.marginRight; var calculatedMargin = $(element).css('margin-right'); $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) + _this9._scrollbarWidth + 'px'); - }); + } // Adjust body padding - var actualPadding = document.body.style.paddingRight; + );var actualPadding = document.body.style.paddingRight; var calculatedPadding = $('body').css('padding-right'); $('body').data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + 'px'); } @@ -456,18 +456,18 @@ var Modal = function ($) { if (typeof padding !== 'undefined') { $(element).css('padding-right', padding).removeData('padding-right'); } - }); + } // Restore navbar-toggler margin - $(Selector.NAVBAR_TOGGLER).each(function (index, element) { + );$(Selector.NAVBAR_TOGGLER).each(function (index, element) { var margin = $(element).data('margin-right'); if (typeof margin !== 'undefined') { $(element).css('margin-right', margin).removeData('margin-right'); } - }); + } // Restore body padding - var padding = $('body').data('padding-right'); + );var padding = $('body').data('padding-right'); if (typeof padding !== 'undefined') { $('body').css('padding-right', padding).removeData('padding-right'); } @@ -557,7 +557,7 @@ var Modal = function ($) { }); Modal._jQueryInterface.call($(target), config, this); - }); + } /** * ------------------------------------------------------------------------ @@ -565,7 +565,7 @@ var Modal = function ($) { * ------------------------------------------------------------------------ */ - $.fn[NAME] = Modal._jQueryInterface; + );$.fn[NAME] = Modal._jQueryInterface; $.fn[NAME].Constructor = Modal; $.fn[NAME].noConflict = function () { $.fn[NAME] = JQUERY_NO_CONFLICT; |