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:
Ralf Becker 2014-03-18 13:22:15 +00:00
parent 4bc2595d36
commit eaaad85521

View File

@ -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);
}
// 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
this.search = null;