Remove window unload event listener from edit order cycle cancel link

This commit is contained in:
wandji20
2024-09-01 22:10:04 +01:00
committed by Sigmund Petersen
parent a11873559b
commit 37ab832b86
3 changed files with 14 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ angular.module("admin.utils")
$window.onbeforeunload = @onBeforeUnloadHandler
$rootScope.$on "$locationChangeStart", @locationChangeStartHandler
$window.onBeforeUnloadHandler = @onBeforeUnloadHandler
# Action for regular browser navigation.
onBeforeUnloadHandler: ($event) =>