mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Hide email address if there's a name, but allow showing it via CSS if desired
This commit is contained in:
parent
b94ea49aa3
commit
edc1f098f3
@ -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("<");
|
||||
@ -317,8 +317,13 @@ var et2_url_ro = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
|
||||
// need to preserve the original value somehow
|
||||
// as it's been used for add contact plus feature
|
||||
this.span.attr('title',_value);
|
||||
|
||||
|
||||
this.span.text(val.replace(/"/g,''));
|
||||
this.span.append("<span class='email'>"+
|
||||
_value.replace(val,'')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
+"</span>");
|
||||
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user