mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
reverted r42883: Make sure there is a "None" option if the select-account is not required so user is not forced to pick an account
--> if "None" option is wanted, it should be added to template, that is the logic in regular select box too
This commit is contained in:
parent
4bc2595d36
commit
eaaad85521
@ -71,12 +71,6 @@ var et2_selectAccount = et2_selectbox.extend(
|
|||||||
this.egw().debug("warn", "Invalid account_type: %s Valid options:",_attrs['account_type'], this.account_types);
|
this.egw().debug("warn", "Invalid account_type: %s Valid options:",_attrs['account_type'], this.account_types);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not required, make sure there's an empty label
|
|
||||||
if(_attrs['rows'] == 1 && !_attrs['empty_label'] && !_attrs['needed'])
|
|
||||||
{
|
|
||||||
_attrs['empty_label'] = 'None';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Holder for search jQuery nodes
|
// Holder for search jQuery nodes
|
||||||
this.search = null;
|
this.search = null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user