Changeset 4517
- Timestamp:
- 11/23/09 07:58:35 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/richcombo/plugin.js
r4497 r4517 278 278 }, 279 279 280 setValue : function( value, emptyLabel)280 setValue : function( value, text ) 281 281 { 282 282 this._.value = value; … … 284 284 var textElement = this.document.getById( 'cke_' + this.id + '_text' ); 285 285 286 if ( ! value)287 { 288 value = emptyLabel ||this.label;286 if ( !( value || text ) ) 287 { 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
Note: See TracChangeset
for help on using the changeset viewer.
