Changeset 1366

Show
Ignore:
Timestamp:
2008-01-19 12:11:15 (9 months ago)
Author:
fredck
Message:

The editor was loosing the selection and the focus (OnBlur fired) when clicking the "Cancel" button.
What about www.skype.com leaking memory ;)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js

    r1255 r1366  
    137137 
    138138                        // Dummy URL for testing whether the code in fckdialog.js alone leaks memory. 
    139                         // dialog.src = 'http://www.skype.com'; 
     139                        // dialog.src = 'about:blank'; 
    140140 
    141141                        dialog.frameBorder = 0 ; 
     
    171171                        FCKDomTools.RemoveNode( dialog ) ; 
    172172 
    173                         // Pop the dialog from the dialog stack, and disable dialog mode if the stack is empty. 
    174                         if ( dialog._ParentDialog ) 
     173                        if ( dialog._ParentDialog )             // Nested Dialog. 
    175174                        { 
    176175                                topDialog = dialog._ParentDialog ; 
    177176                                dialog._ParentDialog.contentWindow.SetEnabled( true ) ; 
    178177                        } 
    179                         else 
    180                         { 
     178                        else                                                    // First Dialog. 
     179                        { 
     180                                FCK.Focus() ; 
    181181                                this.HideMainCover() ; 
    182182                                topDialog = null ;