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
This commit is contained in:
Jean-Philippe Lang 2011-05-30 21:19:25 +00:00
parent d001fcd18e
commit 206a36704f
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ var WarnLeavingUnsaved = Class.create({
},
unload: function(){
this.observedElements.each(function(el) {el.blur();})
if(this.changedForms)
return this.message;
},