From: <com...@fc...> - 2009-05-28 17:35:57
|
Author: garry.yao Date: 2009-05-28 19:35:48 +0200 (Thu, 28 May 2009) New Revision: 3560 Modified: CKEditor/trunk/_source/plugins/dialog/plugin.js Log: Fixing #3600: Change the sequence of 'setInitialValue' and 'onShow' event. Modified: CKEditor/trunk/_source/plugins/dialog/plugin.js =================================================================== --- CKEditor/trunk/_source/plugins/dialog/plugin.js 2009-05-28 14:09:24 UTC (rev 3559) +++ CKEditor/trunk/_source/plugins/dialog/plugin.js 2009-05-28 17:35:48 UTC (rev 3560) @@ -609,9 +609,6 @@ // Reset the hasFocus state. this._.hasFocus = false; - // Save the initial values of the dialog. - this.foreach( function( contentObj ) { contentObj.setInitValue && contentObj.setInitValue(); } ); - // Rearrange the dialog to the middle of the window. CKEDITOR.tools.setTimeout( function() { @@ -625,6 +622,10 @@ // Execute onLoad for the first show. this.fireOnce( 'load', {} ); this.fire( 'show', {} ); + + // Save the initial values of the dialog. + this.foreach( function( contentObj ) { contentObj.setInitValue && contentObj.setInitValue(); } ); + }, 100, this ); }, |