diff options
| author | Mark Otto <[email protected]> | 2016-12-19 21:44:03 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-12-19 21:44:03 -0800 |
| commit | 8eeb71c91c39c01142d2501e6feda7e4f09f8205 (patch) | |
| tree | e7b751ac49ede3082cd200d38846c95751825a1c /js/src/modal.js | |
| parent | 7e5f21c2b4e5d28b75f58de1509699eaa49c4872 (diff) | |
| parent | d991c868a4b9b598a622f739547f71ee0ea7a352 (diff) | |
| download | bootstrap-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.js | 10 |
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() |
