diff options
author | Mark Otto <markdotto@gmail.com> | 2018-02-24 23:44:44 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2018-02-24 23:44:44 +0300 |
commit | f3cec5e7f925ba1cb1700f9de3d728dfc15bccdd (patch) | |
tree | 2fee0985fb8837d98189a252624936662543d1de /js/dist/modal.js | |
parent | b8bfd263581faf4950e3702277126dd7581d7ba8 (diff) |
dist
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r-- | js/dist/modal.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js index 7662e3ff48..1be320a195 100644 --- a/js/dist/modal.js +++ b/js/dist/modal.js @@ -447,8 +447,8 @@ var Modal = function ($) { }); // Adjust body padding 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"); + var calculatedPadding = $(document.body).css('padding-right'); + $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); } }; @@ -470,10 +470,10 @@ var Modal = function ($) { } }); // Restore body padding - var padding = $('body').data('padding-right'); + var padding = $(document.body).data('padding-right'); if (typeof padding !== 'undefined') { - $('body').css('padding-right', padding).removeData('padding-right'); + $(document.body).css('padding-right', padding).removeData('padding-right'); } }; |