Ticket #7904: 7904_3.patch

File 7904_3.patch, 1.8 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/richcombo/plugin.js

     
    276276                                        else
    277277                                                me.setValue( '' );
    278278
    279                                         panel.hide();
     279                                        panel.hide( false );
    280280                                };
    281281
    282282                        this._.panel = panel;
  • _source/plugins/menu/plugin.js

     
    114114
    115115                        onClick : function( item )
    116116                        {
    117                                 this.hide();
     117                                this.hide( false );
    118118
    119119                                if ( item.onClick )
    120120                                        item.onClick();
     
    354354                                this._.listeners.push( listenerFn );
    355355                        },
    356356
    357                         hide : function()
     357                        hide : function( returnFocus )
    358358                        {
    359359                                this._.onHide && this._.onHide();
    360                                 this._.panel && this._.panel.hide();
     360                                this._.panel && this._.panel.hide( returnFocus );
    361361                        }
    362362                }
    363363        });
  • _source/plugins/floatpanel/plugin.js

     
    324324                                isShowing = 0;
    325325                        },
    326326
    327                         hide : function()
     327                        hide : function( returnFocus )
    328328                        {
    329329                                if ( this.visible && ( !this.onHide || this.onHide.call( this ) !== true ) )
    330330                                {
     
    336336                                        this.element.getFirst().removeCustomData( 'activePanel' );
    337337
    338338                                        // Return focus properly. (#6247)
    339                                         var focusReturn = this._.returnFocus;
     339                                        var focusReturn = returnFocus !== false && this._.returnFocus;
    340340                                        if ( focusReturn )
    341341                                        {
    342342                                                // Webkit requires focus moved out panel iframe first.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy