Changeset 1393

Show
Ignore:
Timestamp:
2008-01-23 19:31:52 (2 years ago)
Author:
fredck
Message:

The Focus() call implemented with [1366] is needed for all browsers expect IE. So, I'm not calling it now on IE, which avoids memory leak with IE7.

Files:
1 modified

Legend:

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

    r1366 r1393  
    178178                        else                                                    // First Dialog. 
    179179                        { 
    180                                 FCK.Focus() ; 
     180                                // Set the Focus in the browser, so the "OnBlur" event is not 
     181                                // fired. In IE, there is no need to d othat because the dialog 
     182                                // already moved the selection to the editing area before 
     183                                // closing (EnsureSelection). Also, the Focus() call here 
     184                                // causes memory leak on IE7 (weird). 
     185                                if ( !FCKBrowserInfo.IsIE ) 
     186                                        FCK.Focus() ; 
     187 
    181188                                this.HideMainCover() ; 
    182189                                topDialog = null ;