Make sure there is a property before triger to delete it, because IE complains about an undefiend object

This commit is contained in:
Hadi Nategh 2015-03-10 10:28:56 +00:00
parent 602deb4f8f
commit 564f958fbb

View File

@ -746,7 +746,7 @@ var et2_link_entry = et2_inputWidget.extend(
else
{
_attrs["select_options"] = this.egw().link_app_list('query');
delete _attrs["select_options"]["addressbook-email"];
if (typeof _attrs["select_options"]["addressbook-email"] != 'undefined') delete _attrs["select_options"]["addressbook-email"];
}
// Check whether the options entry was found, if not read it from the