From 623e10d301b74d79e4008c882265d4f085198e2c Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 30 Jan 2009 03:00:06 +0000 Subject: [PATCH] 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 --- javascript/LeftAndMain.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index f7316f86..9fcfed11 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -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)+')' );