aboutsummaryrefslogtreecommitdiff
path: root/js/src/modal.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-19 21:44:03 -0800
committerMark Otto <[email protected]>2016-12-19 21:44:03 -0800
commit8eeb71c91c39c01142d2501e6feda7e4f09f8205 (patch)
treee7b751ac49ede3082cd200d38846c95751825a1c /js/src/modal.js
parent7e5f21c2b4e5d28b75f58de1509699eaa49c4872 (diff)
parentd991c868a4b9b598a622f739547f71ee0ea7a352 (diff)
downloadbootstrap-8eeb71c91c39c01142d2501e6feda7e4f09f8205.tar.xz
bootstrap-8eeb71c91c39c01142d2501e6feda7e4f09f8205.zip
Merge branch 'fix-20982' of https://github.com/Starsam80/bootstrap into Starsam80-fix-20982
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 70bb68e42..94abd19f4 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',
- ACTIVE : 'active'
+ SHOW : 'show'
}
const Selector = {
@@ -185,7 +185,7 @@ const Modal = (($) => {
$(document).off(Event.FOCUSIN)
- $(this._element).removeClass(ClassName.ACTIVE)
+ $(this._element).removeClass(ClassName.SHOW)
$(this._element).off(Event.CLICK_DISMISS)
$(this._dialog).off(Event.MOUSEDOWN_DISMISS)
@@ -242,7 +242,7 @@ const Modal = (($) => {
Util.reflow(this._element)
}
- $(this._element).addClass(ClassName.ACTIVE)
+ $(this._element).addClass(ClassName.SHOW)
if (this._config.focus) {
this._enforceFocus()
@@ -356,7 +356,7 @@ const Modal = (($) => {
Util.reflow(this._backdrop)
}
- $(this._backdrop).addClass(ClassName.ACTIVE)
+ $(this._backdrop).addClass(ClassName.SHOW)
if (!callback) {
return
@@ -372,7 +372,7 @@ const Modal = (($) => {
.emulateTransitionEnd(BACKDROP_TRANSITION_DURATION)
} else if (!this._isShown && this._backdrop) {
- $(this._backdrop).removeClass(ClassName.ACTIVE)
+ $(this._backdrop).removeClass(ClassName.SHOW)
const callbackRemove = () => {
this._removeBackdrop()