Don't try to delete not-existing attribute.

Hopefully solves error in IE.
This commit is contained in:
Ralf Becker 2014-10-01 10:43:24 +00:00
parent dbca9f2008
commit cd30e8bee1

View File

@ -478,7 +478,10 @@ var et2_link_apps = et2_selectbox.extend(
select_options = _attrs.application_list;
} else {
select_options = egw.link_app_list('query');
delete select_options['addressbook-email'];
if(typeof select_options['addressbook-email'] !== 'undefined')
{
delete select_options['addressbook-email'];
}
}
_attrs.select_options = select_options;
this._super.apply(this, arguments);