Changeset 5074

Show
Ignore:
Timestamp:
2010-02-09 17:07:41 (5 weeks ago)
Author:
garry.yao
Message:

Fixing a bug where custom tabIndex order doesn't work with config 'dialog_startupFocusTab'.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • CKEditor/branches/features/aria/_source/plugins/dialog/plugin.js

    r5069 r5074  
    413413                this.on( 'show', function() 
    414414                        { 
     415                                // Setup tabIndex on showing the dialog instead of on loading 
     416                                // to allow dynamic tab order happen in dialog definition. 
     417                                setupFocus(); 
     418 
    415419                                if( editor.config.dialog_startupFocusTab 
    416420                                        && me._.tabIdList.length > 1 ) 
     
    422426                                { 
    423427                                        this._.currentFocusIndex = -1; 
    424                                         setupFocus(); 
    425428 
    426429                                        // Decide where to put the initial focus.