// Establish initial searching start position.\r
finder.searchRange = getSearchRange();\r
\r
- if ( startupPage == 'replace' )\r
- this.getContentElement( 'replace', 'txtFindReplace' ).focus();\r
- else\r
- this.getContentElement( 'find', 'txtFindFind' ).focus();\r
+ this.selectPage( startupPage );\r
},\r
onHide : function()\r
{\r
\r
// Clear current session before dialog close\r
delete finder.matchRange;\r
+ },\r
+ onFocus : function()\r
+ {\r
+ if ( startupPage == 'replace' )\r
+ return this.getContentElement( 'replace', 'txtFindReplace' );\r
+ else\r
+ return this.getContentElement( 'find', 'txtFindFind' );\r
}\r
};\r
};\r