From: Jean-Philippe Lang Date: Mon, 30 May 2011 21:19:25 +0000 (+0000) Subject: Fixed: No warning if unsaved text has not lost focus (#8468). X-Git-Tag: 1.3.0~1894 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=206a36704f37800386cadc75443c3f03af3486a5;p=redmine.git 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 --- 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; },