Ticket #4686: 4686.patch

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

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