From dc46a7b650ee8884bb6a806fad5b61d98a7a6478 Mon Sep 17 00:00:00 2001 From: rekonder Date: Mon, 24 Apr 2017 16:02:30 +0200 Subject: [PATCH] Fix error with close on reports --- app/assets/javascripts/reports/new.js.erb | 1 + 1 file changed, 1 insertion(+) 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);