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
This commit is contained in:
parent
fbffe332e2
commit
cb90cdcc15
|
@ -538,7 +538,7 @@ function warnLeavingUnsaved(message) {
|
||||||
$('form').submit(function(){
|
$('form').submit(function(){
|
||||||
$('textarea').removeData('changed');
|
$('textarea').removeData('changed');
|
||||||
});
|
});
|
||||||
$('textarea').change(function(){
|
$('textarea').live('change', function(){
|
||||||
$(this).data('changed', 'changed');
|
$(this).data('changed', 'changed');
|
||||||
});
|
});
|
||||||
window.onbeforeunload = function(){
|
window.onbeforeunload = function(){
|
||||||
|
|
Loading…
Reference in New Issue