Fix error "cannot read property of undefiend of indexOf" in mail expand on click

This commit is contained in:
Hadi Nategh 2014-09-08 14:09:21 +00:00
parent 0404f7f272
commit a884f3e444

View File

@ -667,6 +667,8 @@ app.classes.mail = AppJS.extend(
for(var i = 0; i < content.length; i++)
{
// if there is no @ in string, its most likely that we have a comma in the personal name part of the emailaddress
if (content[i] != 'undefined' && content[i])
{
if (content[i].indexOf('@')< 0)
{
remembervalue = content[i];
@ -680,6 +682,7 @@ app.classes.mail = AppJS.extend(
}
}
}
}
else
{
widget.set_value({content: content});