Ticket #3222: 3222.patch

File 3222.patch, 1.8 KB (added by Artur Formella, 16 years ago)
  • _source/plugins/panelbutton/plugin.js

     
    8585
    8686                                        this.createPanel( editor );
    8787
    88                                         if ( _.on )
     88                                        var block = _.panel.getBlock( _.id );
     89                                        if ( block.element.isVisible() )                // Hide if is opened.
    8990                                        {
    9091                                                _.panel.hide();
    9192                                                return;
    9293                                        }
    9394
    94                                         _.panel.showBlock( this._.id, new CKEDITOR.dom.element( $element ), 4 );
     95                                        _.panel.showBlock( _.id, new CKEDITOR.dom.element( $element ), 4 );
    9596                                },
    9697                                this );
    9798                        var keyDownFn = CKEDITOR.tools.addFunction( function( ev, element ){
     
    185186
    186187                                        me.setState( CKEDITOR.TRISTATE_ON );
    187188
    188                                         _.on = 1;
    189 
    190189                                        if ( me.onOpen )
    191190                                                me.onOpen();
    192191                                };
     
    198197
    199198                                        me.setState( CKEDITOR.TRISTATE_OFF );
    200199
    201                                         _.on = 0;
    202 
    203200                                        if ( me.onClose )
    204201                                                me.onClose();
    205202                                };
  • _source/plugins/richcombo/plugin.js

     
    9393
    9494                                        this.createPanel( editor );
    9595
    96                                         if ( _.on )
     96                                        var block = _.panel.getBlock( this.id );
     97                                        if ( block.element.isVisible() )                // Hide if is opened.
    9798                                        {
    9899                                                _.panel.hide();
    99100                                                return;
     
    218219
    219220                                        list.focus( !me.multiSelect && me.getValue() );
    220221
    221                                         me._.on = 1;
    222 
    223222                                        if ( me.onOpen )
    224223                                                me.onOpen();
    225224                                };
     
    231230
    232231                                        me.setState( CKEDITOR.TRISTATE_OFF );
    233232
    234                                         me._.on = 0;
    235 
    236233                                        if ( me.onClose )
    237234                                                me.onClose();
    238235                                };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy