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:
authorJohann-S <johann.servoire@gmail.com>2016-10-24 11:57:32 +0300
committerJohann-S <johann.servoire@gmail.com>2016-10-25 15:07:41 +0300
commit9d129a43d6c24d9e60cc8fc7cfbddaaa4c586fdf (patch)
treed2bebaf0ed5680d7a3c86c22e5528afde936a7de /js/src/modal.js
parentf11f630acd4b0cfad3188d125241a41b6ab11627 (diff)
Use a single class name for opened/expanded/shown state of widgets
Diffstat (limited to 'js/src/modal.js')
-rw-r--r--js/src/modal.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index ee78070dd4..2526374287 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -60,7 +60,7 @@ const Modal = (($) => {
BACKDROP : 'modal-backdrop',
OPEN : 'modal-open',
FADE : 'fade',
- IN : 'in'
+ ACTIVE : 'active'
}
const Selector = {
@@ -169,7 +169,7 @@ const Modal = (($) => {
$(document).off(Event.FOCUSIN)
- $(this._element).removeClass(ClassName.IN)
+ $(this._element).removeClass(ClassName.ACTIVE)
$(this._element).off(Event.CLICK_DISMISS)
$(this._dialog).off(Event.MOUSEDOWN_DISMISS)
@@ -231,7 +231,7 @@ const Modal = (($) => {
Util.reflow(this._element)
}
- $(this._element).addClass(ClassName.IN)
+ $(this._element).addClass(ClassName.ACTIVE)
if (this._config.focus) {
this._enforceFocus()
@@ -343,7 +343,7 @@ const Modal = (($) => {
Util.reflow(this._backdrop)
}
- $(this._backdrop).addClass(ClassName.IN)
+ $(this._backdrop).addClass(ClassName.ACTIVE)
if (!callback) {
return
@@ -359,7 +359,7 @@ const Modal = (($) => {
.emulateTransitionEnd(BACKDROP_TRANSITION_DURATION)
} else if (!this._isShown && this._backdrop) {
- $(this._backdrop).removeClass(ClassName.IN)
+ $(this._backdrop).removeClass(ClassName.ACTIVE)
let callbackRemove = () => {
this._removeBackdrop()