mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Revert r46820 as it causes some widgets (tag list) problems.
Fix select account changing selectbox default instead.
This commit is contained in:
parent
013062aa00
commit
b76ace01f5
@ -124,9 +124,7 @@ var ClassWithAttributes = Class.extend(
|
||||
_default = undefined;
|
||||
}
|
||||
|
||||
// Use extend() to avoid a reference to default.
|
||||
// Widget might change it, and alter the default
|
||||
_attrs[key] = typeof _default == "object" ? jQuery.extend(true,{},_default) : _default;
|
||||
attrs[key] = _default;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -113,7 +113,7 @@ var et2_selectAccount = et2_selectbox.extend(
|
||||
case 'selectbox':
|
||||
case 'groupmembers':
|
||||
default:
|
||||
jQuery.extend(this.options.select_options, this.egw().accounts(this.options.account_type));
|
||||
this.options.select_options = jQuery.extend({}, this.options.select_options, this.egw().accounts(this.options.account_type));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -420,7 +420,7 @@ var et2_selectbox = et2_inputWidget.extend(
|
||||
}
|
||||
if (this.options.type == 'select-account')
|
||||
{
|
||||
jQuery.extend(this.options.select_options, this.egw().accounts(this.options.account_type));
|
||||
this.options.select_options = jQuery.extend({},this.options.select_options, this.egw().accounts(this.options.account_type));
|
||||
}
|
||||
this.set_select_options(this.options.select_options);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user