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:
parent
d001fcd18e
commit
206a36704f
|
@ -309,6 +309,7 @@ var WarnLeavingUnsaved = Class.create({
|
|||
},
|
||||
|
||||
unload: function(){
|
||||
this.observedElements.each(function(el) {el.blur();})
|
||||
if(this.changedForms)
|
||||
return this.message;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue