mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 19:42:27 +00: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')
|
|
}
|