Hide email address if there's a name, but allow showing it via CSS if desired

This commit is contained in:
Nathan Gray 2016-03-18 16:44:51 +00:00
parent b94ea49aa3
commit edc1f098f3
4 changed files with 16 additions and 2 deletions

View File

@ -308,7 +308,7 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
this.span.attr("target", "_blank");
}
}
// Remove email address if there's a name
// wrap email address if there's a name
if (this.span.text() && this.span.text().split("<"))
{
var val = this.span.text().split("<");
@ -319,6 +319,11 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
this.span.attr('title',_value);
this.span.text(val.replace(/"/g,''));
this.span.append("<span class='email'>"+
_value.replace(val,'')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
+"</span>");
}

View File

@ -185,6 +185,9 @@ a.et2_url.url {
box-shadow: none !important;
background: transparent !important;
}
.et2_email > span.email {
display: none;
}
/**
* Button widget - text only, and icon
*/

View File

@ -453,6 +453,9 @@ div.mail-compose_fileselector {
position: relative;
background-color: white;
}
#mail-index_mailPreview .et2_email>span{
display: inline;
}
.maildisplayAllAdresses {
max-height: 245px !important;
overflow:scroll;

View File

@ -450,6 +450,9 @@ div.mail-compose_fileselector {
position: relative;
background-color: white;
}
#mail-index_mailPreview .et2_email > span {
display: inline;
}
.maildisplayAllAdresses {
max-height: 245px !important;
overflow: scroll;