mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
value attribute could be undefined. It is safer to check it with get_value() since it return empty array if there's no value
This commit is contained in:
parent
888611f531
commit
d6b7350e5b
@ -2494,7 +2494,7 @@ app.classes.mail = AppJS.extend(
|
||||
{
|
||||
var CcField = this.et2.getWidgetById('cc');
|
||||
var BccField = this.et2.getWidgetById('bcc');
|
||||
if (CcField.options.value.length)
|
||||
if (CcField.get_value().length)
|
||||
{
|
||||
jQuery(".mailComposeJQueryCc").show();
|
||||
if (typeof Cc !='undefined')
|
||||
@ -2502,7 +2502,7 @@ app.classes.mail = AppJS.extend(
|
||||
Cc.set_disabled(true);
|
||||
}
|
||||
}
|
||||
if (BccField.options.value.length)
|
||||
if (BccField.get_value().length)
|
||||
{
|
||||
jQuery(".mailComposeJQueryBcc").show();
|
||||
if (typeof Bcc !='undefined')
|
||||
|
Loading…
Reference in New Issue
Block a user