]> source.dussan.org Git - redmine.git/commitdiff
Warn me when leaving a page with unsaved text doesn't work when editing an update...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 5 Aug 2013 18:12:34 +0000 (18:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 5 Aug 2013 18:12:34 +0000 (18:12 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12084 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 46a00d09a5d1dd1ddbb52456f086762d807585f2..61cca4fa4163c997d023a900cc7e14e50e1b77e0 100644 (file)
@@ -538,7 +538,7 @@ function warnLeavingUnsaved(message) {
   $('form').submit(function(){
     $('textarea').removeData('changed');
   });
-  $('textarea').change(function(){
+  $('textarea').live('change', function(){
     $(this).data('changed', 'changed');
   });
   window.onbeforeunload = function(){