From cb90cdcc150ca607f38ba1fca4428d08b6fc0791 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 5 Aug 2013 18:12:34 +0000 Subject: [PATCH] Warn me when leaving a page with unsaved text doesn't work when editing an update note (#14615). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12084 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 46a00d09a..61cca4fa4 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -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(){