BUGFIX #3199: No longer warned about saving changes if you have actually pressed save.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@69720 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-01-05 21:25:01 +00:00
parent a6d0b5eb0c
commit c02d69037a

View File

@ -51,6 +51,10 @@ Behaviour.register({
this.isChanged = function() {
return tinyMCE.getInstanceById(this.id).isDirty();
}
this.resetChanged = function() {
inst = tinyMCE.getInstanceById(this.id);
inst.startContent = tinymce.trim(inst.getContent({format : 'raw', no_events : 1}));
}
}
}
})