Ticket #3716: 3716_3.patch
File 3716_3.patch, 939 bytes (added by , 15 years ago) |
---|
-
_source/plugins/floatpanel/plugin.js
137 137 138 138 focused.on( 'blur', function() 139 139 { 140 if ( !this._.activeChild && !isShowing )140 if ( this.visible && !this._.activeChild && !isShowing ) 141 141 this.hide(); 142 142 }, 143 143 this ); … … 225 225 }, 0); 226 226 }, 0); 227 227 228 this.visible = 1; 229 228 230 if ( this.onShow ) 229 231 this.onShow.call( this ); 230 232 … … 233 235 234 236 hide : function() 235 237 { 236 if ( !this.onHide || this.onHide.call( this ) !== true)238 if ( this.visible && ( !this.onHide || this.onHide.call( this ) !== true ) ) 237 239 { 238 240 this.hideChild(); 239 241 this.element.setStyle( 'display', 'none' ); 242 this.visible = 0; 240 243 } 241 244 }, 242 245