Ticket #3222: 3222.patch
File 3222.patch, 1.8 KB (added by , 16 years ago) |
---|
-
_source/plugins/panelbutton/plugin.js
85 85 86 86 this.createPanel( editor ); 87 87 88 if ( _.on ) 88 var block = _.panel.getBlock( _.id ); 89 if ( block.element.isVisible() ) // Hide if is opened. 89 90 { 90 91 _.panel.hide(); 91 92 return; 92 93 } 93 94 94 _.panel.showBlock( this._.id, new CKEDITOR.dom.element( $element ), 4 );95 _.panel.showBlock( _.id, new CKEDITOR.dom.element( $element ), 4 ); 95 96 }, 96 97 this ); 97 98 var keyDownFn = CKEDITOR.tools.addFunction( function( ev, element ){ … … 185 186 186 187 me.setState( CKEDITOR.TRISTATE_ON ); 187 188 188 _.on = 1;189 190 189 if ( me.onOpen ) 191 190 me.onOpen(); 192 191 }; … … 198 197 199 198 me.setState( CKEDITOR.TRISTATE_OFF ); 200 199 201 _.on = 0;202 203 200 if ( me.onClose ) 204 201 me.onClose(); 205 202 }; -
_source/plugins/richcombo/plugin.js
93 93 94 94 this.createPanel( editor ); 95 95 96 if ( _.on ) 96 var block = _.panel.getBlock( this.id ); 97 if ( block.element.isVisible() ) // Hide if is opened. 97 98 { 98 99 _.panel.hide(); 99 100 return; … … 218 219 219 220 list.focus( !me.multiSelect && me.getValue() ); 220 221 221 me._.on = 1;222 223 222 if ( me.onOpen ) 224 223 me.onOpen(); 225 224 }; … … 231 230 232 231 me.setState( CKEDITOR.TRISTATE_OFF ); 233 232 234 me._.on = 0;235 236 233 if ( me.onClose ) 237 234 me.onClose(); 238 235 };