From 03e875ffa3b4915b4cc2ecdcf99a8bc244f1b315 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Tue, 24 May 2022 09:50:40 -0400 Subject: [PATCH] Remove duplicated event listener on new plans page group plan modal (#8085) GitOrigin-RevId: 7445c3b93bc54285f5ade6ce8b32b13be9281dc5 --- .../plans-v2/plans-v2-subscription-button.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-subscription-button.js b/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-subscription-button.js index 4cd13e1115..1d6fce2772 100644 --- a/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-subscription-button.js +++ b/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-subscription-button.js @@ -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() }