Ticket #3319: 3319.patch

File 3319.patch, 2.1 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/dialog/plugin.js

     
    568568                        {
    569569                                CKEDITOR.dialog._.currentTop = this;
    570570                                this._.parentDialog = null;
    571                                 addCover( this._.editor );
     571                                addCover( this._.editor, this.definition.cover === false );
    572572
    573573                                CKEDITOR.document.on( 'keydown', accessKeyDownHandler );
    574574                                CKEDITOR.document.on( 'keyup', accessKeyUpHandler );
     
    13821382                                coverDoc.removeListener( 'mousemove', mouseMoveHandler );
    13831383                                coverDoc.removeListener( 'mouseup', mouseUpHandler );
    13841384                        }
     1385
     1386                        if ( dialog.definition.cover === false )
     1387                                CKEDITOR.document.getById( 'cke_dialog_background_cover' ).hide();
    13851388                }
    13861389
    13871390                dialog.parts.title.on( 'mousedown', function( evt )
    13881391                        {
     1392                                if ( dialog.definition.cover === false )
     1393                                        CKEDITOR.document.getById( 'cke_dialog_background_cover' ).show();
     1394
    13891395                                lastCoords = { x : evt.data.$.screenX, y : evt.data.$.screenY };
    13901396
    13911397                                CKEDITOR.document.on( 'mousemove', mouseMoveHandler );
     
    15481554
    15491555        var resizeCover;
    15501556
    1551         var addCover = function( editor )
     1557        var addCover = function( editor, startHidden )
    15521558        {
    15531559                var win = CKEDITOR.document.getWindow();
    15541560
    15551561                var html = [
    15561562                                '<div style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ),
    15571563                                '; z-index: ', editor.config.baseFloatZIndex,
    1558                                 '; top: 0px; left: 0px; ',
     1564                                '; top: 0px; left: 0px;',
     1565                                ( startHidden ? 'display:none;' : '' ),
    15591566                                'background-color: ', editor.config.dialog_backgroundCoverColor,
    15601567                                '" id="cke_dialog_background_cover">'
    15611568                        ];
  • _source/plugins/find/dialogs/find.js

     
    552552
    553553                return {
    554554                        title : editor.lang.findAndReplace.title,
     555                        cover : false,
    555556                        resizable : CKEDITOR.DIALOG_RESIZE_NONE,
    556557                        minWidth : 350,
    557558                        minHeight : 165,
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy