Ticket #3716: 3716_3.patch

File 3716_3.patch, 939 bytes (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/plugins/floatpanel/plugin.js

     
    137137
    138138                                        focused.on( 'blur', function()
    139139                                                {
    140                                                         if ( !this._.activeChild && !isShowing )
     140                                                        if ( this.visible && !this._.activeChild && !isShowing )
    141141                                                                this.hide();
    142142                                                },
    143143                                                this );
     
    225225                                                        }, 0);
    226226                                        }, 0);
    227227
     228                                this.visible = 1;
     229
    228230                                if ( this.onShow )
    229231                                        this.onShow.call( this );
    230232
     
    233235
    234236                        hide : function()
    235237                        {
    236                                 if ( !this.onHide || this.onHide.call( this ) !== true )
     238                                if ( this.visible && ( !this.onHide || this.onHide.call( this ) !== true ) )
    237239                                {
    238240                                        this.hideChild();
    239241                                        this.element.setStyle( 'display', 'none' );
     242                                        this.visible = 0;
    240243                                }
    241244                        },
    242245
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy