Ticket #9060: 9060.patch

File 9060.patch, 1.4 KB (added by Alfonso Martínez de Lizarrondo, 12 years ago)

Proposed patch

  • _source/plugins/dialog/plugin.js

     
    961961                                CKEDITOR.dialog._.currentTop.hide();
    962962
    963963                        // Maintain dialog ordering and remove cover if needed.
     964                        // Deduct or clear the z-index.
    964965                        if ( !this._.parentDialog )
     966                        {
    965967                                hideCover();
     968                                CKEDITOR.dialog._.currentZIndex = null;
     969                        }
    966970                        else
    967971                        {
    968972                                var parentElement = this._.parentDialog.getElement().getFirst();
    969973                                parentElement.setStyle( 'z-index', parseInt( parentElement.$.style.zIndex, 10 ) + Math.floor( this._.editor.config.baseFloatZIndex / 2 ) );
     974                                CKEDITOR.dialog._.currentZIndex -= 10;
    970975                        }
    971976                        CKEDITOR.dialog._.currentTop = this._.parentDialog;
    972977
    973                         // Deduct or clear the z-index.
    974                         if ( !this._.parentDialog )
     978                        if ( !this._.parentDialog || ( this._editor != this._.parentDialog._.editor ) )
    975979                        {
    976                                 CKEDITOR.dialog._.currentZIndex = null;
    977 
    978980                                // Remove access key handlers.
    979981                                element.removeListener( 'keydown', accessKeyDownHandler );
    980982                                element.removeListener( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler );
     
    992994                                        selection && selection.unlock( true );
    993995                                }
    994996                        }
    995                         else
    996                                 CKEDITOR.dialog._.currentZIndex -= 10;
    997997
    998998                        delete this._.parentDialog;
    999999                        // Reset the initial values of the dialog.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy