From 1b934cd56d0935b300ba1bc513906389479c8abe Mon Sep 17 00:00:00 2001 From: slawa Date: Fri, 7 Mar 2014 12:59:34 +0200 Subject: [PATCH] Meets #2393: No warning when leaving site without saving --- app/assets/javascripts/application.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/application.js.erb b/app/assets/javascripts/application.js.erb index 4bc42bf951..ff8cd30cb1 100644 --- a/app/assets/javascripts/application.js.erb +++ b/app/assets/javascripts/application.js.erb @@ -505,6 +505,7 @@ var WarnLeavingUnsaved = Class.create({ }, unload: function(){ + this.observedElements.each(function(item){ item.blur(); }); if(this.changedForms) return this.message; },