diff --git a/app/assets/javascripts/reports/new.js.erb b/app/assets/javascripts/reports/new.js.erb index f7d1995df..890b5616e 100644 --- a/app/assets/javascripts/reports/new.js.erb +++ b/app/assets/javascripts/reports/new.js.erb @@ -479,6 +479,7 @@ function initializeUnsavedWorkDialog() { $(window).off('beforeunload'); $(document).off('page:before-change'); } + return exit; } $(window).on('beforeunload', beforeUnload);