From 206a36704f37800386cadc75443c3f03af3486a5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 30 May 2011 21:19:25 +0000 Subject: [PATCH] Fixed: No warning if unsaved text has not lost focus (#8468). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5969 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/application.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 7e307b61f..fdaadc906 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -309,6 +309,7 @@ var WarnLeavingUnsaved = Class.create({ }, unload: function(){ + this.observedElements.each(function(el) {el.blur();}) if(this.changedForms) return this.message; }, -- 2.39.5