Ticket #9060: 9060.patch
File 9060.patch, 1.4 KB (added by , 12 years ago) |
---|
-
_source/plugins/dialog/plugin.js
961 961 CKEDITOR.dialog._.currentTop.hide(); 962 962 963 963 // Maintain dialog ordering and remove cover if needed. 964 // Deduct or clear the z-index. 964 965 if ( !this._.parentDialog ) 966 { 965 967 hideCover(); 968 CKEDITOR.dialog._.currentZIndex = null; 969 } 966 970 else 967 971 { 968 972 var parentElement = this._.parentDialog.getElement().getFirst(); 969 973 parentElement.setStyle( 'z-index', parseInt( parentElement.$.style.zIndex, 10 ) + Math.floor( this._.editor.config.baseFloatZIndex / 2 ) ); 974 CKEDITOR.dialog._.currentZIndex -= 10; 970 975 } 971 976 CKEDITOR.dialog._.currentTop = this._.parentDialog; 972 977 973 // Deduct or clear the z-index. 974 if ( !this._.parentDialog ) 978 if ( !this._.parentDialog || ( this._editor != this._.parentDialog._.editor ) ) 975 979 { 976 CKEDITOR.dialog._.currentZIndex = null;977 978 980 // Remove access key handlers. 979 981 element.removeListener( 'keydown', accessKeyDownHandler ); 980 982 element.removeListener( CKEDITOR.env.opera ? 'keypress' : 'keyup', accessKeyUpHandler ); … … 992 994 selection && selection.unlock( true ); 993 995 } 994 996 } 995 else996 CKEDITOR.dialog._.currentZIndex -= 10;997 997 998 998 delete this._.parentDialog; 999 999 // Reset the initial values of the dialog.