From 691b38f7251bc66b4f845f8ba524a914fdb2f06f Mon Sep 17 00:00:00 2001 From: ArtemB Date: Wed, 6 Sep 2023 13:13:08 +0300 Subject: [PATCH] 0.0.130 bug fix remove_route after tap to cancel_button --- static/js/user_profile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 8da3e97..6049bcc 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -208,6 +208,8 @@ function cancelRemove() { remove_button.innerText = 'Удалить'; remove_button.setAttribute("id", "remove_route"); + remove_button.removeEventListener('click', removeRoute); + }