propagate width to magic suggest

This commit is contained in:
Ralf Becker 2013-11-17 20:36:35 +00:00
parent 670598a783
commit a4f5ea0b00

View File

@ -155,6 +155,8 @@ var et2_taglist = et2_selectbox.extend(
selectionRenderer: jQuery.proxy(this.options.tagRenderer || this.selectionRenderer,this),
renderer: jQuery.proxy(this.options.listRenderer || this.selectionRenderer,this),
maxSelection: this.options.maxSelection,
maxSelectionRenderer: jQuery.proxy(function(v) { this.egw().lang('You can not choose more then %1 item(s)!', v); }, this),
width: this.options.width, // propagate width
highlight: false // otherwise renderer have to return strings
}, this.lib_options);
this.taglist = this.taglist.magicSuggest(options);