Fix "From" field in mail display always get abbreviated

This commit is contained in:
Hadi Nategh
2016-08-18 18:56:52 +02:00
parent 7e14298339
commit 65b331749d
2 changed files with 16 additions and 3 deletions

View File

@@ -244,6 +244,12 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
"type": "boolean",
"default": false,
"description": "Allow to add email as contact to addressbook"
},
"full_email": {
"name": "Show full email address",
"type": "boolean",
"default": true,
"description": "Allow to show full email address if ture otherwise show only name"
}
},
@@ -315,7 +321,7 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
}
}
// wrap email address if there's a name
if (this.span.text() && this.span.text().split("<"))
if (this.span.text() && this.span.text().split("<") && this.options.full_email)
{
var val = this.span.text().split("<");
val = val[0] != ""? val[0]: val[2];