mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
Fix error "cannot read property of undefiend of indexOf" in mail expand on click
This commit is contained in:
parent
0404f7f272
commit
a884f3e444
@ -667,16 +667,19 @@ app.classes.mail = AppJS.extend(
|
|||||||
for(var i = 0; i < content.length; i++)
|
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 there is no @ in string, its most likely that we have a comma in the personal name part of the emailaddress
|
||||||
if (content[i].indexOf('@')<0)
|
if (content[i] != 'undefined' && content[i])
|
||||||
{
|
{
|
||||||
remembervalue = content[i];
|
if (content[i].indexOf('@')< 0)
|
||||||
}
|
{
|
||||||
else
|
remembervalue = content[i];
|
||||||
{
|
}
|
||||||
var value = remembervalue+(remembervalue?',':'')+content[i];
|
else
|
||||||
var email = et2_createWidget('url-email',{id:widget.id+'_'+i, value:value,readonly:true, contact_plus:true},widget);
|
{
|
||||||
email.loadingFinished();
|
var value = remembervalue+(remembervalue?',':'')+content[i];
|
||||||
remembervalue = '';
|
var email = et2_createWidget('url-email',{id:widget.id+'_'+i, value:value,readonly:true, contact_plus:true},widget);
|
||||||
|
email.loadingFinished();
|
||||||
|
remembervalue = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user