mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-26 16:34:20 +00:00
Remove duplicated event listener on new plans page group plan modal (#8085)
GitOrigin-RevId: 7445c3b93bc54285f5ade6ce8b32b13be9281dc5
This commit is contained in:
parent
43a069edca
commit
03e875ffa3
1 changed files with 0 additions and 9 deletions
|
@ -17,15 +17,6 @@ function showGroupPlanModal(el) {
|
|||
changeGroupPlanModalRadioInputData(plan)
|
||||
|
||||
const modalEl = $('[data-ol-group-plan-modal]')
|
||||
modalEl
|
||||
.on('shown.bs.modal', function () {
|
||||
const path = `${window.location.pathname}${window.location.search}`
|
||||
history.replaceState(null, document.title, path + '#groups')
|
||||
})
|
||||
.on('hidden.bs.modal', function () {
|
||||
history.replaceState(null, document.title, window.location.pathname)
|
||||
})
|
||||
|
||||
modalEl.modal()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue