Changeset 5075

Show
Ignore:
Timestamp:
2010-02-09 17:15:08 (6 weeks ago)
Author:
garry.yao
Message:

Adapting 'Find' dialog to the new dialog initial focus API.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • CKEditor/branches/features/aria/_source/plugins/find/dialogs/find.js

    r4858 r5075  
    813813                                // Establish initial searching start position. 
    814814                                finder.searchRange = getSearchRange(); 
    815  
    816                                 if ( startupPage == 'replace' ) 
    817                                         this.getContentElement( 'replace', 'txtFindReplace' ).focus(); 
    818                                 else 
    819                                         this.getContentElement( 'find', 'txtFindFind' ).focus(); 
    820815                        }, 
    821816                        onHide : function() 
     
    831826                                // Clear current session before dialog close 
    832827                                delete finder.matchRange; 
     828                        }, 
     829                        onFocus : function() 
     830                        { 
     831                                if ( startupPage == 'replace' ) 
     832                                        return this.getContentElement( 'replace', 'txtFindReplace' ); 
     833                                else 
     834                                        return this.getContentElement( 'find', 'txtFindFind' ); 
    833835                        } 
    834836                };