Ticket #4654: 4654.patch

File 4654.patch, 792 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/richcombo/plugin.js

     
    277277                                this.init();
    278278                },
    279279
    280                 setValue : function( value, text )
     280                setValue : function( value, emptyLabel )
    281281                {
    282282                        this._.value = value;
    283283
     
    285285
    286286                        if ( !value )
    287287                        {
    288                                 text = this.label;
     288                                value = emptyLabel || this.label;
    289289                                textElement.addClass( 'cke_inline_label' );
    290290                        }
    291291                        else
    292292                                textElement.removeClass( 'cke_inline_label' );
    293                         textElement.setHtml( typeof text != 'undefined' ? text : value );
     293
     294                        textElement.setHtml( value );
    294295                },
    295296
    296297                getValue : function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy