Ticket #3041: 3041_2.patch

File 3041_2.patch, 1.5 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/panel/plugin.js

     
    264264
    265265                hide : function()
    266266                {
    267                         this.element.setStyle( 'display', 'none' );
     267                        if ( !this.onHide || this.onHide.call( this )  !== true )
     268                                this.element.setStyle( 'display', 'none' );
    268269                },
    269270
    270271                onKeyDown : function( keystroke )
  • _source/plugins/panelbutton/plugin.js

     
    213213
    214214                        if ( this.onBlock )
    215215                                this.onBlock( panel, _.id );
     216
     217                        panel.getBlock( _.id ).onHide = function()
     218                                {
     219                                        _.on = 0;
     220                                        me.setState( CKEDITOR.TRISTATE_OFF );
     221                                };
     222
    216223                },
    217224
    218225                setState : CKEDITOR.ui.button.prototype.setState
  • _source/plugins/richcombo/plugin.js

     
    266266                        this._.panel = panel;
    267267                        this._.list = list;
    268268
     269                        panel.getBlock( this.id ).onHide = function()
     270                                {
     271                                        me._.on = 0;
     272                                        me.setState( CKEDITOR.TRISTATE_OFF );
     273                                }
     274
    269275                        if ( this.init )
    270276                                this.init();
    271277                },
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy