mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Remove duplicated event listener on new plans page group plan modal (#8085)
GitOrigin-RevId: 7445c3b93bc54285f5ade6ce8b32b13be9281dc5
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user