BUGFIX #3429: Fixed CMS change detection

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@71024 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-01-30 03:00:06 +00:00
parent 9086994807
commit 623e10d301

View File

@ -594,9 +594,12 @@ ChangeTracker.prototype = {
var elements = Form.getElements(this);
var i, element;
for(i=0;element=elements[i];i++) {
// NOTE: TinyMCE coupling
// Ignore mce-generated elements
if(element.className.substr(0,3) == 'mce') continue;
if(!element.isChanged) element.isChanged = this.field_changed;
if(!this.changeDetection_fieldsToIgnore[element.name] && element.isChanged()) {
//if( window.location.href.match( /^https?:\/\/dev/ ) )
// Debug.log('Changed:'+ element.id + '(' + this.originalSerialized +')->('+Form.Element.serialize(element)+')' );