Ticket #4686: 4686.patch
File 4686.patch, 878 bytes (added by , 14 years ago) |
---|
-
_source/plugins/richcombo/plugin.js
277 277 this.init(); 278 278 }, 279 279 280 setValue : function( value, emptyLabel)280 setValue : function( value, text ) 281 281 { 282 282 this._.value = value; 283 283 284 284 var textElement = this.document.getById( 'cke_' + this.id + '_text' ); 285 285 286 if ( ! value)286 if ( !( value || text ) ) 287 287 { 288 value = emptyLabel ||this.label;288 text = this.label; 289 289 textElement.addClass( 'cke_inline_label' ); 290 290 } 291 291 else 292 292 textElement.removeClass( 'cke_inline_label' ); 293 294 textElement.setHtml( value ); 293 textElement.setHtml( typeof text != 'undefined' ? text : value ); 295 294 }, 296 295 297 296 getValue : function()