From: <cos...@us...> - 2010-11-16 20:59:15
|
Revision: 4880 http://jaffa.svn.sourceforge.net/jaffa/?rev=4880&view=rev Author: cosbor11 Date: 2010-11-16 20:59:08 +0000 (Tue, 16 Nov 2010) Log Message: ----------- Bug #15764 and Bug #15698 changed the replaceLinkTargets method to only call syncValue when a link was replaced. added missing syncFlag variable Modified Paths: -------------- tags/JAFFA_5_7_0_FINAL/JaffaRIA/source/html/js/extjs/ux/form/HtmlEditorWithView.js Modified: tags/JAFFA_5_7_0_FINAL/JaffaRIA/source/html/js/extjs/ux/form/HtmlEditorWithView.js =================================================================== --- tags/JAFFA_5_7_0_FINAL/JaffaRIA/source/html/js/extjs/ux/form/HtmlEditorWithView.js 2010-11-16 20:39:57 UTC (rev 4879) +++ tags/JAFFA_5_7_0_FINAL/JaffaRIA/source/html/js/extjs/ux/form/HtmlEditorWithView.js 2010-11-16 20:59:08 UTC (rev 4880) @@ -112,14 +112,18 @@ replaceLinkTargets: function(){ var bd = this.getEditorBody(); var html = bd.innerHTML; + var syncFlag = false; var anchorTags = bd.getElementsByTagName("a"); for (var i = 0; i < anchorTags.length; i++) { var target = anchorTags[i].target; if (!target) { + syncFlag = true; anchorTags[i].target = '_blank'; } } - this.syncValue(); + if (syncFlag) { + this.syncValue(); + } }, //Overrode because the htmleditor does not have a change listener. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |