Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2015-08-19 06:28:28 +0300
committerMark Otto <markdotto@gmail.com>2015-08-19 06:28:28 +0300
commit3dd48b8d475f727cb5aa63b09388a3a3553629be (patch)
tree2eb043bf46073141674c106672ee0ac77614c1aa /js/dist/modal.js
parent1c19ded8c14cc9caca8ca2992834e2900dbbb4e5 (diff)
js grunt
Diffstat (limited to 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index b467c40f05..f28df5c76a 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -230,14 +230,18 @@ var Modal = (function ($) {
$(this._element).addClass(ClassName.IN);
- if (this._config.focus) this._enforceFocus();
+ if (this._config.focus) {
+ this._enforceFocus();
+ }
var shownEvent = $.Event(Event.SHOWN, {
relatedTarget: relatedTarget
});
var transitionComplete = function transitionComplete() {
- if (_this2._config.focus) _this2._element.focus();
+ if (_this2._config.focus) {
+ _this2._element.focus();
+ }
$(_this2._element).trigger(shownEvent);
};
@@ -394,7 +398,7 @@ var Modal = (function ($) {
}
if (this._isBodyOverflowing && !isModalOverflowing) {
- this._element.style.paddingRight = this._scrollbarWidth + 'px';
+ this._element.style.paddingRight = this._scrollbarWidth + 'px~';
}
}
}, {
@@ -423,7 +427,7 @@ var Modal = (function ($) {
this._originalBodyPadding = document.body.style.paddingRight || '';
if (this._isBodyOverflowing) {
- document.body.style.paddingRight = bodyPadding + this._scrollbarWidth + 'px';
+ document.body.style.paddingRight = bodyPadding + (this._scrollbarWidth + 'px');
}
}
}, {