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:27:33 +00:00
parent 4bbe60dfc3
commit 0e4cb1bdb6

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