Ticket #6170: 6170_5.patch
File 6170_5.patch, 2.2 KB (added by , 14 years ago) |
---|
-
_source/plugins/floatpanel/plugin.js
282 282 } 283 283 } 284 284 285 // Trigger the onHide event of the previously active panel to prevent 286 // incorrect styles from being applied (#6170) 287 var innerElement = element.getFirst(), 288 activePanel; 289 if ( ( activePanel = innerElement.getCustomData( 'activePanel' ) ) ) 290 activePanel.onHide && activePanel.onHide.call( this, 1 ); 291 innerElement.setCustomData( 'activePanel', this ); 292 285 293 element.setStyles( 286 294 { 287 295 top : top + 'px', … … 315 323 this.hideChild(); 316 324 this.element.setStyle( 'display', 'none' ); 317 325 this.visible = 0; 326 this.element.getFirst().removeCustomData( 'activePanel' ); 318 327 } 319 328 }, 320 329 -
_source/plugins/panelbutton/plugin.js
113 113 me.onOpen(); 114 114 }; 115 115 116 panel.onHide = function( )116 panel.onHide = function( preventOnClose ) 117 117 { 118 118 if ( me.className ) 119 119 this.element.getFirst().removeClass( me.className + '_panel' ); … … 122 122 123 123 _.on = 0; 124 124 125 if ( me.onClose )125 if ( !preventOnClose && me.onClose ) 126 126 me.onClose(); 127 127 }; 128 128 -
_source/plugins/richcombo/plugin.js
239 239 me.onOpen(); 240 240 }; 241 241 242 panel.onHide = function( )242 panel.onHide = function( preventOnClose ) 243 243 { 244 244 if ( me.className ) 245 245 this.element.getFirst().removeClass( me.className + '_panel' ); … … 248 248 249 249 me._.on = 0; 250 250 251 if ( me.onClose )251 if ( !preventOnClose && me.onClose ) 252 252 me.onClose(); 253 253 }; 254 254