mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
59d83c4b88
[web] de-ng plans page GitOrigin-RevId: b902b10b45ab3fd46e71545c94f65e8f079c4564
12 lines
388 B
JavaScript
12 lines
388 B
JavaScript
export function swapModal(selectorBefore, selectorAfter) {
|
|
const modalBefore = $(selectorBefore)
|
|
const modalAfter = $(selectorAfter)
|
|
|
|
// Disable the fade-out + fade-in animation when swapping the forms.
|
|
modalBefore.removeClass('fade')
|
|
modalAfter.removeClass('fade')
|
|
modalAfter.modal()
|
|
modalBefore.modal('hide')
|
|
modalBefore.addClass('fade')
|
|
modalAfter.addClass('fade')
|
|
}
|