mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Fix taglists did not always get their options
This commit is contained in:
parent
5d65420a03
commit
6f7050d036
@ -976,11 +976,11 @@ jQuery.extend(et2_selectbox, //(function(){ "use strict"; return
|
|||||||
// First check type, there may be static options. There's some special handling
|
// First check type, there may be static options. There's some special handling
|
||||||
// for filterheaders, which have the wrong type.
|
// for filterheaders, which have the wrong type.
|
||||||
var type = widget.instanceOf(et2_nextmatch_filterheader) ? attrs.widget_type || '' : widget._type;
|
var type = widget.instanceOf(et2_nextmatch_filterheader) ? attrs.widget_type || '' : widget._type;
|
||||||
var type_function = type.replace('select-','').replace('_ro','')+'_options';
|
var type_function = type.replace('select-','').replace('taglist-','').replace('_ro','')+'_options';
|
||||||
if(typeof this[type_function] == 'function')
|
if(typeof this[type_function] == 'function')
|
||||||
{
|
{
|
||||||
var old_type = widget._type;
|
var old_type = widget._type;
|
||||||
widget._type = type;
|
widget._type = type.replace('taglist-','select-');
|
||||||
if(typeof attrs.other == 'string')
|
if(typeof attrs.other == 'string')
|
||||||
{
|
{
|
||||||
attrs.other = attrs.other.split(',');
|
attrs.other = attrs.other.split(',');
|
||||||
|
Loading…
Reference in New Issue
Block a user