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:
Hadi Nategh 2014-01-27 20:07:06 +00:00
parent 888611f531
commit d6b7350e5b

View File

@ -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')