]> source.dussan.org Git - redmine.git/commitdiff
Fixed: No warning if unsaved text has not lost focus (#8468).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 May 2011 21:19:25 +0000 (21:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 May 2011 21:19:25 +0000 (21:19 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5969 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

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